在 Ubuntu 上安裝 Ansible

Ansible 維護一個 PPA 儲存庫,可用於安裝 Ansible 二進位制檔案:

sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update && sudo apt-get install ansible -y

要安裝特定版本,請使用 pip。PPA 可能已過期。