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, 2019 in Ansible by Ayaan
832 views

1 answer to this question.

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, 2019 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,890 points
732 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, 2019 in Ansible by Anushri
886 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, 2019 in Ansible by Devika
2,846 views
0 votes
1 answer

Ensure the package is latest version - Ansible

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

answered Mar 6, 2019 in Ansible by Yogesh
867 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,058 views
+2 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, 2019 in Ansible by Anushri
559 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, 2019 in Ansible by Priya
1,050 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP