The newest code seems not to support python2.5 now. In lib/ansible/
util.py, for example, it needs to import methondcaller from operator
module which is new in python 2.6. Is that true?
True, on the machine with ansible installed (not the nodes), it requires 2.6… there need to be some patches made to upgrade this.
There is also the usage of the warnings module somewhere.
Patches welcome. I would be ok with the options not being sorted on lower than 2.6, for instance, and even having the warnings code
not run.
This is a strong plea to keep the code that gets pushed to the client
machines running on Python 2.5. We manage several dozen machines with
Ubuntu 8.04, which has Python 2.5, and will have to keep them running
for most of the next year.
The overlord machine has Python 2.6 so no worries there.
-- Art Z.
Managed machines (client is such confusing terminology) already support 2.4 and up.
For /usr/bin/ansible I am strongly favoring requiring 2.6, so that we can use modern language features.
Finding a RHEL 6 or Fedora or … anything VM to run ansible on shouldn’t be a problem.
My Mac also has 2.6
Plus it clarifies the docs nicely.