I am setting up an Ansible server to manage my other servers. Unfortunately on two of them I got the following error message:
fatal: [server1.programster.org]: FAILED! => {"changed": false, "module_stderr": "Shared connection to server1.programster.org closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 0}
I noticed that which python
output nothing, and I was able to "fix" the situation by creating a symlink of /usr/bin/python
that pointed to /usr/bin/python3
.
Was there a "more correct" way to fix this than me creating symlinks? I know Ubuntu 16.04 dropped python2 for python3 but I would have thought it would come out of the box with /usr/bin/python pointing to python3 no?
/usr/bin/python2.7
(or possibly to re-install thepython-minimal
package)