ansible all -m ping
x.x.x.x | FAILED! => {
“changed”: false,
“module_stderr”: “Shared connection to x.x.x.x closed.\r\n”,
“module_stdout”: “/bin/sh: /usr/bin/python3: not found\r\n”,
“msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error”,
“rc”: 127
}
and python3 is installed in the Ansible Master:
root@admin:/etc/ansible# which python3
/usr/bin/python3
The problem is the python on the target, not the controller