ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

Python3 #92

Closed seanho00 closed 3 years ago

seanho00 commented 4 years ago

Running ansible with python3 on ansible host seems to work. If managed host has only python3, however, it fails due to not finding /usr/bin/python. Debian buster, interpreter_python = auto_silent.

Workaround for now is to ensure managed host has python2.

Is there a Debian config to enable /usr/bin/python to link to python3? Or is an ansible setting to tell it to look for /usr/bin/python3?

seanho00 commented 4 years ago

Set ansible_python_interpreter to /usr/bin/python3 for hosts that only have python3. (Use inventory group to set.)

https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-handle-python-not-having-a-python-interpreter-at-usr-bin-python-on-a-remote-machine