Unhandled error in Python interpreter discovery for host

892 views
Skip to first unread message

Edwin Cabarique

unread,
Sep 8, 2020, 12:36:24 AM9/8/20
to Ansible Project
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
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
}


Reply all
Reply to author
Forward
0 new messages