Ubuntu/Debian install ansible 2.x

Install Ansible with package manager

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

Install Ansible from git

sudo apt-get update
sudo apt-get install python-pip python-dev git -y
sudo pip install PyYAML jinja2 paramiko

# clone ansible git repository
git clone https://github.com/ansible/ansible.git
cd ansible

# install ansible plugins
git submodule update --init --recursive

# run installation
sudo make install

# or you can install by running:
# sudo python setup.py install

sudo mkdir /etc/ansible
sudo cp examples/hosts /etc/ansible/