🌿

Ubuntu 22.04 LTS に ansible-navigator をインストール

2022/07/07に公開

Ubuntu 22.04 LTS 上に ansible-navigator をインストールする手順です。

  1. podman をインストール
    sudo apt update
    sudo apt-get -y install curl wget gnupg2
    source /etc/os-release
    sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
    wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
    sudo apt-get update
    sudo apt-get -y install podman
    
  2. ansible-navigator をインストール
    sudo mkdir /dev/mqueue
    sudo apt -y install python3-pip
    python3 -m pip install ansible-navigator --user
    echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.profile
    source ~/.profile
    ansible-navigator
    

参考
https://ansible-navigator.readthedocs.io/en/latest/

Discussion