參考文檔:https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
操作系統:Ubuntu 16.04
執行用戶root,執行命令:
- apt-get update
- apt-get install software-properties-common
- apt-add-repository --yes --update ppa:ansible/ansible
- apt-get install ansible