Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian 8 - Install Ansible

Related Posts

Install Methods

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

Last updated: 19th January 2025
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch