-
Bug
-
Resolution: Duplicate
-
Normal
-
6.13.0
-
None
-
None
Description of problem: Running Ansible Role on a registered rhel6.10 content host fails with "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.5. Current version: 2.6.6"
Version-Release number of selected component (if applicable):
6.13.0
How reproducible:
Always
Steps to Reproduce:
1. Create valid SCAP content and sync/import an Ansible role- "theforeman.foreman_scap_client"
2. Import Ansible Variables needed for the role
-foreman_scap_client_policies
-foreman_scap_client_port
-foreman_scap_client_server
3. Create a SCAP policy with ansible as a deploy option
Deployment Option: Ansible
Name: Any name
OSCAP Content: Red Hat rhel6 default content, profile: DISA STIG for Red Hat Enterprise Linux 6
Host Group: Select host group
4. Associate the policy with a host group
5. Provision a rhel6 host using the host group, and register that host with Satellite
6. Configure REX and associate the Ansible role to created host
7. Play roles for the host from Host > Content Host page, and execute "Run Ansible Roles" on host.
Actual results:
REX Job fails with the below error,
fatal: [satellite.redhat.com]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts":
, "failed": true, "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.5. Current version: 2.6.6 (r266:84292, Jun 11 2019, 11:01:44) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
Expected results:
REX Job should pass successfully
Additional info:
- duplicates
-
SAT-14069 ansible playbooks fail on RHEL 6 clients after updating Satellite/Capsule to RHEL 8.7
- Closed