Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-16861

Running Ansible Role on RHEL6 host fails with "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.5. Current version: 2.6.6"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • 6.14.0, 6.12.z, 6.13.z
    • 6.13.0
    • None
    • None
    • Moderate
    • 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":

      {"discovered_interpreter_python": "/usr/bin/python"}

      , "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:

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: