Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 737
Dmitry Utrobin Avatar asked Nov 25 '15 08:11

Dmitry Utrobin


2 Answers

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 :)

like image 68
abhishek_M Avatar answered Oct 21 '22 00:10

abhishek_M


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)

like image 41
Kyle Avatar answered Oct 20 '22 23:10

Kyle