Install Ansible on Ubuntu 10.04 / 12.10 / 13.04, Debian 7
One of the really great things about Ansible is that you don't need to install an Ansible client on the servers you're managing. You only need to install Ansible on your local machine or on a master server that can connect to the managed servers via SSH.
The official installation documentation is at: http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu
Install via source
These are the instructions for Ubuntu 12.10, Ubuntu 13.04, and Debian 7. See note below for Ubuntu 10.04.
> apt-get update > apt-get install python-pip python-dev git -y > pip install PyYAML jinja2 paramiko > git clone https://github.com/ansible/ansible.git > cd ansible > make install > mkdir /etc/ansible > cp ~/ansible/examples/hosts /etc/ansible/
Important for Ubuntu 10.04: When installing on Ubuntu 10.04, replace the git package on line 2 with the
Also, feedback from Jim Tang using Ubuntu 10.04: "When I
pip install PyYAML jinja2 paramiko, it failed in installing paramiko for some gcc parsing error. My solution is to use
aptitude install python-paramikoinstead of using 'pip install'. Then
make installcan be done successfully." Thanks Jim!
If you're getting cryptography errors:
Feedback from Harry Sufehmi
I kept on getting cryptography error on this step:
pip install PyYAML jinja2 paramiko
Turned out that the previous step :
apt-get install python-pip python-dev git -y
It should be like this instead:
apt-get install python-pip python-dev git libssl-dev libffi-dev -y
Note: These instructions were tested on DigitalOcean's Ubuntu 10.04, 12.10, 13.04 and Debian 7 server images (all x64) in August 2013. If you discover an error with these instructions, please email: email@example.com.
Next, see the post-install steps...
Get the latest updates via email.
High Velocity Ops Newsletter