Ansible setup action with delegate_to tries to use the current python interpreter. #396
Labels
ansible
Issues relating to Mitogen for Ansible
bug
Code feature that hinders desired execution outcome
user-reported
I am running ansible in a local virtualenv and I want to execute the setup action on remote docker hosts.
When running the setup action normally, the boot command uses /usr/bin/python. However when I run the setup action with the delegate_to option then it wants to use the python interpreter from the local virtualenv (which of course does not exist on the remote docker host).
Ansible version:
Also tested on 2.7.0, with the same result.
Ansible config dump:
Using the current git master of mitogen (ad44ad1).
Local OS: Mac OS X 10.13.6
Remote OS: Red Hat 7.5 remote docker containers.
Local Python: 2.7.14
Remote Python: 2.7.6
Example test playbook:
I see the following output (using -vvv):
For the first task:
For the second task:
The text was updated successfully, but these errors were encountered: