Open mordekasg opened 5 months ago
Tested on latest release: 0.3.9. Result is still the same.
I have the same issue 👍
With PR #1114 merged into master the Ansible connection password (e.g. ansible_password
, ansible_ssh_pass
) is templated. Now that I've found a reasonable way to do this, others should follow.
Ansible connection password (e.g.
ansible_password
,ansible_ssh_pass
) is templated
Now released in 0.3.12
Ansible connection password (e.g.
ansible_password
,ansible_ssh_pass
) is templatedNow released in 0.3.12
That`s great news!
I have tested on 0.3.12 and templated ansible_password
, ansible_ssh_pass
are working.
According to this issue: #1116, after new version release, also templated ansible_user
, ansible_ssh_user
will be working.
I have added PR: #1148, which will allow to template ansible_become_password
attribute.
After those 2 PR`s released, feel free to close this issue!
That`s great news!
I have tested on 0.3.12 and templated
ansible_password
,ansible_ssh_pass
are working.According to this issue: #1116, after new version release, also templated
ansible_user
,ansible_ssh_user
will be working.I have added PR: #1148, which will allow to template
ansible_become_password
attribute.After those 2 PR`s released, feel free to close this issue!
This problem also affects the ansible_host
variable.. It's kind of hinted to in the subject, but not showed in the example.. Can we use this issue to cover this or should I file a new issue?
This problem also affects the
ansible_host
variable.. It's kind of hinted to in the subject, but not showed in the example.. Can we use this issue to cover this or should I file a new issue?
I updated my post and extended example to some extent.
It`s great idea to use this issue to cover also ansible_host
variable.
Mitogen 0.3.14 is out. It includes support for templated ansible_become_user
, `become_user, etc. Thanks to @mordekasg.
Mitogen 0.3.15 is out. It supports templated SSH arguments and become password.
Mitogen 0.3.16 is out with support for templating the Ansible SSH command (e.g. ansible_ssh_executable), the become command (e.g. ansible_become_exe), and the become command arguments (e.g. ansible_become_flags)
I think that leaves
Become plugins (e.g. sudo)
Connection plugins (e.g. ssh)
Mitogen v0.3.17 is out. Templated ssh key, templated host key checking, and templated host address.
Bonus release: 0.3.18 with support for templating the become flag (ansible_become) and the become method (ansible_become_method).
I'll probably target ansible_interpreter_python
next. It will probably take longer, a week or two.
OS / Environment
Debian 12
Ansible version
Environment variables for strategy plugin
Mitogen version
Problem
Jinja expressions are not evaluated by mitogen plugin
How to reproduce
Description
Ansible host: srv1 has credentials configured using Jinja expressions from vault/hostvars variables. Ansible host: srv2 has credentials configured directly as host variables.
Vault file
Path: vault.test.yml
Inventory file
Path: inventory/local/local.yml
Commands
regular user
superuser - become
Output
regular user
superuser - become
Commands with verbose
regular user
superuser - become
Output
Expected result
Source of the problem
Ansible: https://github.com/ansible/ansible/commit/6d2d476113b3a26e46c9917e213f09494fbc0a13
Similar issues
Ansible
Paramiko plugin: https://github.com/ansible/ansible/issues/78509 Ansible: https://github.com/ansible/ansible/pull/76590
Mitogen
905
978
1022
1040
1079
1116