how to set different python interpreters for local and remote hosts
问题 Use-Case: Playbook 1 when we first connect to a remote host/s, the remote host will already have some python version installed - the auto-discovery feature will find it now we install ansible-docker on the remote host from this time on: the ansible-docker docs suggest to use ansible_python_interpreter=/usr/bin/env python-docker Playbook 2 We connect to the same host/s again, but now we must use the /usr/bin/env python-docker python interpreter What is the best way to do this? Currently we set