Ansible 2.1 on Debian Jessie 8.6

1 minute read Published:

Install dependencies:

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:

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:

make
checkinstall --install=no

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

**********************************************************************
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
**********************************************************************