Question:
I have uninstall ansible 1.9.4 and install with sudo apt-get install ansible
, the version 2.0.2.
But when I execute:
1 2 3 |
ikerlan$ ansible --version ansible 1.9.4 |
I have uninstall and reinstall using ansible ppa, when I install I can see this:
1 2 3 4 5 6 |
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:
1 2 3 4 |
ikerlan@ikerlan-docker:~$ ansible --version ansible 1.9.4 configured module search path = None |
If I run the next:
1 2 3 |
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
Answer:
There is no guarantee you get the latest version just because you uninstalled and reinstalled. As of now Ansible 2.0 is available only through PPA.
1 2 3 4 5 |
$ sudo apt-get install software-properties-common $ sudo apt-add-repository ppa:ansible/ansible $ sudo apt-get update $ sudo apt-get install ansible |