Install Ansible on Debian 8 (Jessie)

October 7, 2016 by

Using Ubuntu’s 16.04 (Xenial) PPA works well to get Ansible installed on a Debian 8 server.

First, add the software-properties-common dependency and the Ansible repo:

# apt install software-properties-common
# apt-add-repository ppa:ansible/ansible

Modify the /etc/apt/sources.list.d/ansible-ansible-jessie.list that just got added.

echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" > /etc/apt/sources.list.d/ansible-ansible-jessie.list

After you’ve run the above command, the file should only have:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main

… in it. The only thing we’re really doing is to replace the word jessie (second word from end) to xenial.

Now, just run an update and install Ansible:

# apt update
# apt install ansible

That’s it. It should work.

Leave a Reply