Installing latest Ansible Version 2.1.0.0 on CentOS 6.8

284 views
Skip to first unread message

Kaushal Shriyan

unread,
Jun 9, 2016, 1:36:43 PM6/9/16
to Ansible Project
Hi,

I have installed Ansible application on CentOS 6.8 using yum after installing epel repo and i see the below version

#ansible --version
ansible 2.0.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides

#cat /etc/redhat-release
CentOS release 6.8 (Final)

I referred to https://en.wikipedia.org/wiki/Ansible_(software) it say's the latest version is 2.1.0.0 / May 25, 2016; 8 days ago Please let me know how do i get the latest version.

Any help is highly appreciable.

Regards,

Kaushal


Fraser Goffin

unread,
Jun 9, 2016, 7:39:29 PM6/9/16
to Ansible Project
I did this very thing for Cento 7 only yesterday. I simply followed the instructions in the main Ansible docs for making an RPM from the stable-2.1 branch of the GitHub repo and it worked really well. The only gotcha is to make sure that you also clone all of the git submodules otherwise you won't include all of the latest Ansible module updates.

So just go here : http://docs.ansible.com/ansible/intro_installation.html#latest-release-via-yum

... and follow the part that starts :-

'You can also build an RPM yourself. From the root of a checkout or tarball, use the make rpm command to build an RPM you can distribute and install. Make sure you have rpm-build, make, asciidoc, git, python-setuptools and python2-devel installed......'

This blog is also somewhat useful :-

http://mangolassi.it/topic/7506/installing-ansible-2-on-centos-7/2

HTHs

Fraser.

Reply all
Reply to author
Forward
0 new messages