Showing different Ansible version

0 votes

I was initially trying to upgrade my ansible version from 1.9 to 1.9.2.

I tried using yum with the following command:

yum update -y ansible

But I ended up with this error:

No packages marked for update

I tried upgrading using pip after that with the following command:

sudo pip install --upgrade ansible==1.9.2

and when I checked for the version it still showed 1.9

ansible --version
ansible 1.9 (devel affb66416f) last updated 2015/11/04 09:09:40 (GMT +100)

Jan 14 in Ansible by Ayaan
14 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Seems like you have two versions of ansible installed 1.9 using yum and 1.9.2 using pip. So now it's just confusing.

There are two things that can be done, 

  • you either delete 1.9 or
  • set your 1.9.2 path with higher precedence. 

answered Jan 14 by Natasha

Related Questions In Ansible

0 votes
1 answer

stopping different hosts from reading the same value when usign ansible in loop

Try using this. Create a new directory ...READ MORE

answered Jul 27, 2018 in Ansible by DareDev
• 6,520 points
20 views
0 votes
1 answer

Mention Kubernetes version while using it with ansible

Hey @Dustin, The default value for roles is kube_version: ...READ MORE

answered Jan 22 in Ansible by Anushri
11 views
0 votes
1 answer

Check for certain package with specific version exists - Ansible

Hey @Kavya, to check if a package ...READ MORE

answered Mar 6 in Ansible by Devika
37 views
0 votes
1 answer

Ensure the package is latest version - Ansible

Ensure a package is at the latest ...READ MORE

answered Mar 6 in Ansible by Yogesh
33 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Restoring to a different cluster - Ansible

Hey @Kiara, When you try to restore ...READ MORE

answered Feb 4 in Ansible by Anushri
9 views
0 votes
1 answer

What are the different types of plugins available in Ansible?

Ansible provides a huge variety of plugins ...READ MORE

answered Feb 19 in Ansible by Priya
45 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.