mitogen/tests/ansible/hosts
Alex Willmer 945e360363 ansible_mitogen: Respect interpreter_python and ANSIBLE_PYTHON_INTERPRETER
This adapts PR #740 by @extmind (afe0026890),
which augmented the call to `Connection.get_task_var()` with
`C.config.get_config_value('INTERPRETER_PYTHON'` as a default. Instead this
*replaces* the call to `Connection.get_task_var()`. The aim is greater
simplicity by disentangling templating of a configured interpreter path and
discovery of an interpreter when none is configured. I think this also reduces
the number of times `Connection._get_task_vars()` is called, so reducing the
number of times we do the ugly stack frame inspection.

I've also added test cases.

Co-authored-by: Lars Beckers <lars@extmind.de>
2025-01-03 13:27:25 +00:00
..
group_vars Support Ansible 11 (ansible-core 2.18) 2024-12-02 10:09:43 +00:00
become_same_user.hosts tests: Bypass interpreter discovery on non-existant connection delegation targets 2024-08-11 01:17:29 +01:00
connection_delegation.hosts tests: Bypass interpreter discovery on non-existant connection delegation targets 2024-08-11 01:17:29 +01:00
default.hosts ansible_mitogen: Respect interpreter_python and ANSIBLE_PYTHON_INTERPRETER 2025-01-03 13:27:25 +00:00
issue340 ansible: use template-expanded delegate_to hostname in one more location. 2018-09-08 20:53:11 +01:00
k3.hosts.disabled tests: Ignore inventory files of inactive tests & benchmarks 2024-10-06 21:38:12 +01:00
localhost.hosts.disabled tests: Ignore inventory files of inactive tests & benchmarks 2024-10-06 21:38:12 +01:00
osa-containers.hosts.disabled tests: Ignore inventory files of inactive tests & benchmarks 2024-10-06 21:38:12 +01:00
transport_config.hosts tests: Add regression for add_host with host_key_checking 2024-05-10 15:58:17 +02:00