Ansible Tower output shows failure with wrong python version

Solution In Progress - Updated -

Issue

  • Even though Python3 is expected, when a playbook is run from Ansible Tower, an error in the job output indicates python 2.x is being used.

    ansible-playbook 2.9.27
     config file = /etc/ansible/ansible.cfg
     configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
     ansible python module location = /usr/lib/python2.7/site-packages/ansible
     executable location = /usr/bin/ansible-playbook
     python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
    .
    . *output omitted*
    .
    PLAY RECAP *********************************************************************
    localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
    

Environment

  • RHEL 7
  • Ansible Tower 3.8.1
  • Python 2.7.5
  • Python3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content