Ansible 2.1 on Debian Jessie 8.6

Install dependencies:

1
2
3
4
5
sudo apt-get install python-crypto python-ecdsa python-httplib2 python-jinja2 \
     python-markupsafe python-paramiko python-pkg-resources python-selinux \
     python-six python-yaml libssl-dev libxml2-dev libxslt1-dev \
     libjpeg62-turbo-dev zlib1g-dev python-dev libxml2-dev
sudo pip install paramiko PyYAML Jinja2 httplib2 six

Download ansible source code from github:

1
2
3
4
git clone https://github.com/ansible/ansible.git
cd ansible
git submodule update --init --recursive
git checkout tags/v2.1.2.0-1

Compile and build .deb package:

1
2
make
checkinstall --install=no

Once the build is complete you should see a success message:

1
2
3
4
5
6
7
8
**********************************************************************
Done. The new package has been saved to
 
./ansible_20161212-1_amd64.deb
You can install it in your system anytime using:
 
dpkg -i ansible_20161212-1_amd64.deb
**********************************************************************

Tags: 

Related Notes: