Ansible execution fails on RHEL 6 clients registered to Red Hat Satellite 6 with the following error "ansible-core requires a minimum of Python 2.7 or Python 3.5. Current version: 2.6.6".
Issue
-
Ansible roles are failing to execute on RHEL 6 hosts.
fatal: [host.example.com]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "failed": true, "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 2.6.6 (r266:84292, Oct 25 2023, 10:11:41) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
Environment
- Red Hat Satellite 6
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.