Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ansible 126.96.36.199 fails on nodes with python 2.4.3 #33101
ansible-config dump --only-changed
OS / ENVIRONMENT
Ansible fails to run on nodes with python 2.4.3
STEPS TO REPRODUCE
ansible -vvvv ext -i clientes_hosts -m ping
Thanks very much for your submission to Ansible. It sincerely means a lot to us.
We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated.
Ansible 2.4 dropped support for Python 2.4 and 2.5, so it is not expected to work on such nodes. You can either upgrade/install a supported Python version or use Ansible 2.3
In the future, this might be a topic more well suited for the user list, which you can also post here if you'd like some more help with the above.
Thank you once again for this and your interest in Ansible!
I have similiar error when gathering facts for centos 5.9
Workaround is using ansible 2.3:
@athman, that's only "easy" for people with superuser access. I use Ansible to maintain my own home-directories and ssh-keys on hundreds of machines. Being unable to do that with the older RHEL-5 servers is a big disappointment. I'd understand, why Ansible developers may not want to create new code maintaining backwards compatibility, but they could've kept the already-written implementations -- and use them automatically upon detecting older Python-versions on the remote.
It is, probably, too late now, but, given Python's disregard for backwards compatibility, the issue is likely to popup again in the future, when today's latest versions become "legacy"...