Install Ansible:

sudo apt-get install python-pip python-dev
sudo pip install ansible

If cryptography Python module fails to install:

sudo apt-get install libssl-dev