The proper way to install Ansible on Ubuntu 17.04
Because the ansible version comes with Ubuntu 17.04 is quite all (1.6.2), it may cause you troubles like missing module directory... After a while, I figured that PIP is the best way to install Ansible on Ubuntu 17.04. 1. Install the needed libs: $ sudo apt install libffi-dev libssl-dev libxml2-dev libxslt1-dev openssl-dev python-dev libffi-dev python-pip 2. Then install Ansible: $ sudo pip install ansible 3. Fix AttributeError : 'module' object has no attribute 'PROTOCOL_SSLv3' error when running Ansible: http://www.dangtrinh.com/2017/06/how-to-fix-attributeerror-module-object.html 4. Enjoy!