Hello Experts,
I normally use Jenkins for my jobs and now we switched to AWX. I am getting so many module errors and other errors.
One of the module errors:
NXOS is cisco module but it gives this error. All my job templates mentioned to start by devops but somehow it is using root.
Can you confirm how can I fix this?
“ansible_facts”: {},
“msg”: “The following modules failed to execute: nxos_facts\n”,
“failed_modules”: {
“nxos_facts”: {
“failed”: true,
“module_stdout”: “”,
“module_stderr”: “Traceback (most recent call last):\n File "", line 102, in \n File "", line 94, in _ansiballz_main\n File "", line 40, in invoke_module\n File "/usr/lib64/python2.7/runpy.py", line 188, in run_module\n fname, loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/modules/network/nxos/nxos_facts.py", line 214, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/facts/facts.py", line 14, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/facts/legacy/base.py", line 9, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/nxos.py", line 48, in \n File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/yaml/init.py", line 399\n class YAMLObject(metaclass=YAMLObjectMetaclass):\n ^\nSyntaxError: invalid syntax\n”,
“exception”: “Traceback (most recent call last):\n File "", line 102, in \n File "", line 94, in _ansiballz_main\n File "", line 40, in invoke_module\n File "/usr/lib64/python2.7/runpy.py", line 188, in run_module\n fname, loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/modules/network/nxos/nxos_facts.py", line 214, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/facts/facts.py", line 14, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/facts/legacy/base.py", line 9, in \n File "/tmp/ansible_nxos_facts_payload_46yTQG/ansible_nxos_facts_payload.zip/ansible/module_utils/network/nxos/nxos.py", line 48, in \n File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/yaml/init.py", line 399\n class YAMLObject(metaclass=YAMLObjectMetaclass):\n ^\nSyntaxError: invalid syntax\n”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}
},
“_ansible_verbose_override”: true,
“_ansible_no_log”: false,
“changed”: false
}
Regards
Miqdaad Patwa