Got it.
So it seemed from your initial question you were trying to get it to work with yum, where yum is installed on the “box” python.
Apologies as I was confused. (It is definitely true that you only need 2.4 or higher on remote managed nodes)
In this case, you can just change the /usr/bin/ansible-playbook and /usr/bin/ansible shebang lines to /usr/bin/python26
And just let ansible execute /usr/bin/python as normal for local management so it will find yum.
In this case, you can just change the /usr/bin/ansible-playbook and /usr/bin/ansible shebang lines to /usr/bin/python26
Indeed, I thought about this one too. But I wanted to use the git based installation and I would have maintain a gap between my local config and Ansible official version.
Neverminf, now it works.But please can you complete the section http://ansible.cc/docs/gettingstarted.html#python-2-6-epel-instructions-for-rhel-and-centos-5. I felt so frustrated to see an empty doc which matched exactly my problem
Other point, why the is not Ansible EL 5 rpm in EPEL 5 repo ?
Cheers
Daniel
alternatively just stick a ‘python’ symlink in your path that points to the right interpreter.
It’s basically not in EL5 because most of the above hoops that I’m welcoming of patches to support EL5 RPM building. Easier to just manage from a EL6 machine in most cases.
FYI, I’m using this on EL5. After doing yum install python26 python26-paramiko python26-PyYAML python26-jinja2 (from EPEL), I just edited the line PYTHON=python26 in the Makefile before running make install. Seems simple enough and everything works great. If the makefile could detect that var then everything would work unmodified out of the box… maybe I’ll think up a patch to suggest at some point.
-J
I think this is the same on CentOS 6 and RHEL 5/6 using epel, those
packages are all the same from EPEL.