Hello team.
I wanted to ask you for some help with this error when trying to connect to a cisco router from Ansible. either by console or by means of AWX.
[root@centos7 home]# ansible all -m ping
[WARNING]: Unhandled error in Python interpreter discovery for host 172.25.3.17: unexpected output from Python interpreter
discovery
[WARNING]: sftp transfer mechanism failed on [172.25.3.17]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: Platform unknown on host 172.25.3.17 is using the discovered Python interpreter at /usr/bin/python, but future
installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
172.25.3.17 | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/bin/python”
},
“changed”: false,
“module_stderr”: “Shared connection to 172.25.3.17 closed.\r\n”,
“module_stdout”: “\r\nLine has invalid autocommand "/bin/sh -c ‘/usr/bin/python ‘"’"‘Line has invalid autocommand "/bin/sh -c ‘"’"’"’"‘"’"‘"’"‘( umask 77 && mkdir -p "` echo Line has invalid autocommand "/bin/sh -c ‘"’"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"‘echo ~edwin.cabarique && sleep 0’"’"‘"’"”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 0
}