Programster's Blog

Tutorials focusing on Linux, programming, and open-source

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
cd ansible
sudo make install
sudo mkdir /etc/ansible
sudo cp ~/ansible/examples/hosts /etc/ansible/.


Last updated: 8th January 2023
First published: 16th August 2018