Ansible not showing latest version after yum upgrade on Redhat 6.x

76 views
Skip to first unread message

asi...@net-sense.com

unread,
Jun 1, 2017, 12:42:34 PM6/1/17
to Ansible Project
Hello All,
Before upgrading the Ansible version is 2.1.2.  After using yum to update the Ansible package, the version still states 2.1.2?? What am missing?  Did I do something wrong here?

Thx
Al

[allan@SDNAUTOS02 ~]$ ansible --version
ansible 2.1.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/etc/ansible/roles/Juniper.junos/library']
[allan@SDNAUTOS02 ~]$

--------------------------------------
Here is the upgrade

[root@SDNAUTOS02 allan]# yum update ansible
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.2.1.0-1.el6 will be updated
---> Package ansible.noarch 0:2.3.0.0-3.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================
 Package                               Arch                                 Version                                     Repository                          Size
=================================================================================================================================================================
Updating:
 ansible                               noarch                               2.3.0.0-3.el6                               epel                               5.9 M

Transaction Summary
=================================================================================================================================================================
Upgrade       1 Package(s)

Total download size: 5.9 M
Is this ok [y/N]: y
Downloading Packages:
ansible-2.3.0.0-3.el6.noarch.rpm                                                                                                          | 5.9 MB     00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : ansible-2.3.0.0-3.el6.noarch                                                                                                                  1/2
warning: /etc/ansible/ansible.cfg created as /etc/ansible/ansible.cfg.rpmnew
  Cleanup    : ansible-2.2.1.0-1.el6.noarch                                                                                                                  2/2
  Verifying  : ansible-2.3.0.0-3.el6.noarch                                                                                                                  1/2
  Verifying  : ansible-2.2.1.0-1.el6.noarch                                                                                                                  2/2

Updated:
  ansible.noarch 0:2.3.0.0-3.el6

Complete!
[root@SDNAUTOS02 allan]# exit
exit

------------------------------------------------------------
Here is a version check after the update.  Still says the same exact version???

[allan@SDNAUTOS02 ~]$ ansible --version
ansible 2.1.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/etc/ansible/roles/Juniper.junos/library']
[allan@SDNAUTOS02 ~]$

asi...@net-sense.com

unread,
Jun 1, 2017, 4:20:45 PM6/1/17
to Ansible Project
Found the problem.  This system actually has 2 versions of Ansible installed .....  Does anyone know why the first one states the "python version" but the second one does not?

[allan@SDNAUTOS02 my-ansible]$ /usr/bin/ansible --version
ansible 2.3.0.0
  config file = /home/allan/my-ansible/ansible.cfg
  configured module search path = [u'/etc/ansible/roles/Juniper.junos/library']
  python version = 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
[allan@SDNAUTOS02 my-ansible]$ /usr/local/bin/ansible --version
ansible 2.1.2.0
  config file = /home/allan/my-ansible/ansible.cfg
  configured module search path = ['/etc/ansible/roles/Juniper.junos/library']
[as2863@SDNAUTOS02 my-ansible]$

Kai Stian Olstad

unread,
Jun 2, 2017, 12:47:14 AM6/2/17
to ansible...@googlegroups.com
On 01. juni 2017 22:20, asi...@net-sense.com wrote:
> Found the problem. This system actually has 2 versions of Ansible
> installed ..... Does anyone know why the first one states the "python
> version" but the second one does not?
New feature in newer Ansible.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages