mitogen
mitogen copied to clipboard
Mitogen ignores python_interpreter when using mitogen_via
Description
Hey there, Seems not really important, feel free to close if irrelevant.
Given:
# ansible.cfg
[defaults]
interpreter_python = auto_silent
strategy_plugins = ./req/mitogen-0.3.34/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
# [...]
and:
# playbooks/test.yml
---
- name: "Get ping response"
hosts: all
gather_facts: false
tasks:
- ping:
Running from the bastion on a remote host:
ansible-playbook playbook/useless/pingall.yml -l <HOST>
PLAY [Get ping response] ********************************************************************************************************************************************************************************************
TASK [ping] *********************************************************************************************************************************************************************************************************
ok: [<HOST>]
PLAY RECAP **********************************************************************************************************************************************************************************************************
<HOST> : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Running from home through the bastion (by setting mitogen_via variable in <HOST>'s variables):
ansible-playbook playbook/useless/pingall.yml -l <HOST>
PLAY [Get ping response] ********************************************************************************************************************************************************************************************
TASK [ping] *********************************************************************************************************************************************************************************************************
[WARNING]: Host '<HOST> is using the discovered Python interpreter at '/usr/bin/python3.11', but future installation of another Python interpreter could cause a different interpreter to be discovered. See https://docs.ansible.com/ansible-core/2.19/reference_appendices/interpreter_discovery.html for more information.
ok: [<HOST>
PLAY RECAP **********************************************************************************************************************************************************************************************************
<HOST> : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Notice the warning appeared.
Note: mitogen_via is used with a become parameter i.e. user@host.
Mitogen version
0.3.34
Ansible version (if applicable)
2.19.3
OS and environment
Host: Arch Linux, Python 3.13.7 Bastion: Debian 12, Python 3.12 Target: Debian 12, Python 3.11.2
Steps to reproduce
No response
Anything else
No response
Probably a casualty of #1135