# Ansible on Centos5 again

**URL:** <https://forum.ansible.com/t/ansible-on-centos5-again/12000>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 19, 2012, 3:44pm UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000 "2012-10-19T15:44:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dag\_Wieers](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Dag\_Wieers](https://forum.ansible.com/u/Dag_Wieers)\
**Post date:** [October 19, 2012, 3:44pm UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/1 "2012-10-19T15:44:13Z")

</div>

Without exactly knowing what you want to do, my recommendation is to use CentOS6 as your 'command and control' server. Chances are you want this system (or systems) to be well-secured and dedicated only for this purpose. And maybe you don't want any 3rd party packages just to be secure.

So reinstalling the CentOS5 server you had foreseen for this to CentOS6 is probably worthwhile, and aligned to what most (running CentOS) are doing anyway.

---

<div class="post-metadata">

**Author:** ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://forum.ansible.com/u/hakim)\
**Post date:** [October 22, 2012, 8:08am UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/2 "2012-10-22T08:08:07Z")

</div>

CentOS 6 is not officially released by the data center I have to work with. So this is at this time no option.

---

<div class="post-metadata">

**Author:** ![Dag\_Wieers](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Dag\_Wieers](https://forum.ansible.com/u/Dag_Wieers)\
**Post date:** [October 22, 2012, 9:43am UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/3 "2012-10-22T09:43:52Z")

</div>

I feel your pain 😉

Let's see what we can do to make it easier on RHEL5.

---

<div class="post-metadata">

**Author:** ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://forum.ansible.com/u/hakim)\
**Post date:** [October 23, 2012, 6:47am UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/4 "2012-10-23T06:47:20Z")

</div>

> I feel your pain 😉

Thanks…

> Let’s see what we can do to make it easier on RHEL5.

Yes lets make things easier and/or just let us provide a rpm.

---

<div class="post-metadata">

**Author:** ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://forum.ansible.com/u/hakim)\
**Post date:** [October 25, 2012, 10:00am UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/5 "2012-10-25T10:00:17Z")

</div>

Hi,

Had time today to try to get ansible 0.8 stable running from source. Here is what I did, which will help beginners most probably. It is based on a minimal installation of Cenots 5.8. Anyway a rpm would be still nice to provide.

=== CentOS 5 ===

==== From Source ====

Configure EPEL repo

wget ‘[http://ftp-stud.hs-esslingen.de/pub/epel/5/i386/epel-release-5-4.noarch.rpm](http://ftp-stud.hs-esslingen.de/pub/epel/5/i386/epel-release-5-4.noarch.rpm)’  
rpm -ivh epel-release-5-4.noarch.rpm

Install some packages

yum install python26 python26-PyYAML python26-paramiko python26-jinja2 rpm-build asciidoc libxslt git vim-enhanced

Get the newest stable release

git clone [GitHub - ansible/ansible: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.](https://github.com/ansible/ansible.git)  
cd ansible/  
git checkout tags/0.8

Add PATH and sourcing to ‘’~/.bash\_profile’’

#PATH=$PATH:$HOME/bin  
PATH=$HOME/bin:$PATH  
source ~/ansible/hacking/env-setup

Create fake bin directory for python

mkdir /root/bin  
cd /root/bin  
ln -s $(which python26) python

‘’‘Logout and login again.’‘’

Check your PATH

# echo $PATH

/root/ansible/bin:/root/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

‘’/root/bin’’ should be before the system pathes to the binaries as above.

Try ansible

ansible --help

---

<div class="post-metadata">

**Author:** ![Nigel\_Metheringham](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nigel\_Metheringham](https://forum.ansible.com/u/Nigel_Metheringham)\
**Post date:** [October 25, 2012, 5:10pm UTC](https://forum.ansible.com/t/ansible-on-centos5-again/12000/6 "2012-10-25T17:10:11Z")

</div>

I'll have a look and see if I can spin up a Centos 5 rpm, although its  
not something I would use myself (policy now is that new stuff should go  
onto C6 since C5 deployment for new stuff means lining ourselves up for  
a C5-\>C6 transition down the line... and I'm lazy in that I will happily  
do more work now to avoid work in the future).

As ansible is a new setup for us, its going on C6 when we move to  
production. I may manage C5 environments with ansible, although I'm  
currently thinking more in terms of moving management of C5 services to  
ansible at the point where we transition services to C6 🙂

&nbsp;&nbsp;Nigel.
