ansible_user and ansible_ssh_host variables not evaluated by mitogen #1022
Labels
affects-0.3
Issues related to 0.3.X Mitogen releases
bug
Code feature that hinders desired execution outcome
Which version of Ansible are you running?
7.7.0+dfsg-1 from debian unstable
Is your version of Ansible patched in any way?
no
Are you running with any custom modules, or
module_utils
loaded?no
Have you tried the latest master version from Git?
no
Do you have some idea of what the underlying problem may be?
It seems that ansible variables related to ssh (at least) are not evaluated
Mention your host and target OS and versions
host is Debian unstable, target is Debian stable (bookworm)
Mention your host and target Python versions
host: 3.11.4-5+b1
target: 3.11.2-1+b1
I reproduce the problem with a small inventory and task file:
ansible_user and ansible_ssh_host are defined to a non-constant in the inventory file (group
dj
):My test playbook is the following
As it is, running it with default stategy works. But, with
strategy = mitogen_linear
, I got:The log shows that
ansible_user
andansible_ssh_host
are not expended with mitogen.Adding at the start of
test.yml
the too line that callsset_fact
on the variables used by mitogen workaround the problem:Regards,
Vincent
The text was updated successfully, but these errors were encountered: