Installing Ansible on Ubuntu
March 6, 2015
I want to use Ansible to automate deploying software to servers. The version of Ansible in the Ubuntu repositories is old. To get a recent one, use the repository provided by rquillo.
$ sudo apt-add-repository ppa:rquillo/ansible More info: https://launchpad.net/~rquillo/+archive/ubuntu/ansible Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmprzv8ihfo/secring.gpg' created gpg: keyring `/tmp/tmprzv8ihfo/pubring.gpg' created gpg: requesting key 5504681D from hkp server keyserver.ubuntu.com gpg: /tmp/tmprzv8ihfo/trustdb.gpg: trustdb created gpg: key 5504681D: public key "Launchpad PPA for Rodney Quillo" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK $ sudo apt-get update $ sudo apt-get install ansible
You should see something like the following in the output:
Get:2 http://ppa.launchpad.net/rquillo/ansible/ubuntu/ trusty/main ansible all 1.7.1-trusty-unstable-ppa [517 kB]
You can now ask ansible to tell you the version it is using:
$ ansible --version ansible 1.7.1