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

1 answer to this question.

Your answer

Your name to display (optional):
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



answered Jul 27, 2018 in Ansible by DareDev
• 6,520 points
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
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
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
+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
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
