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]$ On Thursday, June 1, 2017 at 12:42:34 PM UTC-4, [email protected] wrote: > > 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 ~]$ > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5367d541-2bb0-4d7a-aa03-7c87c88d24d0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
