上QQ阅读APP看书,第一时间看更新
Ubuntu package installation
The best way to install Ansible on a recent release is to add the Ansible PPA for Ubuntu ppa:ansible/ansible (launchpad.net/~ansible/+archive/ubuntu/ansible). This should be added using the following command:
sudo apt-add-repository ppa:ansible/ansible
Adding a PPA repository requires you to confirm a key server setup. This is accepted by pressing Enter.
We then need to update the package manager cache, also called the system packages index, as follows:
sudo apt update
Finally, we can install Ansible:
sudo apt install ansible