Dmitry  Utrobin
Dmitry Utrobin

Reputation: 359

Update ansible (ubuntu server 14)

I installed ansible in Ubunru server 14 using this tutorial http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu

After I checked version of ansible:

$ ansible --version
ansible 1.5.5

But I need 1.9. How to update it?

Upvotes: 13

Views: 23867

Answers (2)

abhishek_M
abhishek_M

Reputation: 1170

From Ansible website:

1) First remove installed version of ansible using sudo apt-get remove --purge ansible

2) Now add the correct ppa using sudo apt-add-repository ppa:ansible/ansible

3) Update the package list: sudo apt-get update

4) Install ansible: sudo apt-get install ansible

I had the same issues as you. Above steps worked like a charm :)

Upvotes: 38

Kyle
Kyle

Reputation: 4445

Are you sure you installed it correctly? The version in the PPA for 14.04 is 1.9.4-1, so I don't know where 1.5.5 would be coming from.

In any case, you could try erasing ansible (sudo apititude erase ansible should work), and installing ansible with pip as per http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip

(Namely, have pip installed, then run pip install --upgrade ansible)

Upvotes: 3

Related Questions