Debian 8 - Install Ansible

The simplest (recommended) installation method is to run:

sudo apt-get install ansible -y  

This will install version 1.7.2.

Pip Method

Alternatively you can install from source to get version 2.0.0.

This was subsequently tested on the 29th of October 2016 and failed, but I'm leaving it here in case I can fix this at a later date.

sudo apt-get update
sudo apt-get install python-pip python-dev git -y
sudo pip install PyYAML jinja2 paramiko
git clone https://github.com/ansible/ansible.git
cd ansible
sudo make install
sudo mkdir /etc/ansible
sudo cp ~/ansible/examples/hosts /etc/ansible/.

References

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.