Getting '/usr/bin/env: python: Too many levels of symbolic links' while running job through Tower

Hi awx,

I am using:

Ansible Tower version: 3.2.5
Ansible version: 2.6.1

I have created a job template and added inventory, but while executing the job through Ansible Tower I am getting below WARNINGS and unable to run job in specified hosts.

SSH password:

SUDO password[defaults to SSH password]:

[WARNING]: * Failed to parse /tmp/awx_117_vn_OFE/tmpb05vb9.awxrest.py with

script plugin: Inventory script (/tmp/awx_117_vn_OFE/tmpb05vb9.awxrest.py) had

an execution error: /usr/bin/env: python: Too many levels of symbolic links

[WARNING]: * Failed to parse /tmp/awx_117_vn_OFE/tmpb05vb9.awxrest.py with

ini plugin: /tmp/awx_117_vn_OFE/tmpb05vb9.awxrest.py:35: Expected key=value

host variable assignment, got: json

[WARNING]: Unable to parse /tmp/awx_117_vn_OFE/tmpb05vb9.awxrest.py as an

inventory source

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note

that the implicit localhost does not match ‘all’

PLAY [Testing] *****************************************************************22:58:44

TASK [debug] *******************************************************************22:58:44

ok: [localhost] => {

“msg”: “Success”

}

PLAY RECAP *********************************************************************22:58:44

localhost : ok=1 changed=0 unreachable=0 failed=0

But when I am running the same playbook directly using ‘ansible-playbook’, ran successfully. Someone please help me in fixing this issue.

Bharat,

"This list is for discussions about the AWX open source project. If you are having issues with Ansible Tower, please contact your Red Hat support rep.