I have uninstall ansible 1.9.4 and install with sudo apt-get install ansible
, the version 2.0.2.
But when I execute:
ikerlan$ ansible --version
ansible 1.9.4
I have uninstall and reinstall using ansible ppa, when I install I can see this:
Preparing to unpack .../ansible_2.0.0.2-1ppa~trusty_all.deb ...
Unpacking ansible (2.0.0.2-1ppa~trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Configurando ansible (2.0.0.2-1ppa~trusty) ...
Processing triggers for python-support (1.0.15) ...
But if I check ansible version:
ikerlan@ikerlan-docker:~$ ansible --version
ansible 1.9.4
configured module search path = None
If I run the next:
ikerlan@ikerlan-docker:~$ sudo dpkg -l | grep ansible
ii ansible 2.0.0.2-1ppa~trusty all A radically simple IT automation platform
Any help? Thanks
Here is the right way to upgrade it. Even after installing ansible correctly does not change the version. The solution i found here works nicely. https://groups.google.com/forum/#!topic/ansible-project/eCtBp2aDtCQ
sudo -H pip install --upgrade ansible
Just running this command upgrades and fixes the version too which we check using ansible --version
It will upgrade to latest like now its 2.1