I am running the ansible playbook through AWX and its getting failed with the subjected error. But the same playbook is running on other server successfully. Kindly help to resolve the issue.
{
"ansible_facts": {},
"msg": "The following modules failed to execute: setup\n",
"failed_modules": {
"setup": {
"failed": true,
"module_stdout": " File \"/home/oracle/.ansible/tmp/ansible-tmp-1615285403.4958365-166725-83674126722203/AnsiballZ_setup.py\", line 72\r\n with open(args_path, 'rb') as f:\r\n ^\r\nSyntaxError: invalid syntax\r\n",
"module_stderr": "Shared connection to ###### closed.\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1,
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"warnings": [
]
}
},
"_ansible_verbose_override": true,
"_ansible_no_log": false,
"changed": false