Those vars are preserved when doing delegate_to: localhost and tasks fail when the requested password does not exist. (AFAIK localhost is not part of group all, but since it gets delegated from one of the hosts in ansible_play_batch, those vars are preserved)
If such a password entry exists, the task runs through flawlessly (although the password does not get used), but if the password entry does not exist, the lookup plugin will fail.
Thanks for the work that went into this role already, it is a great one that gets the job done!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For some context: In my local setup, passwords
ansible_password
andansible_become_password
get automatically set throughgroup_vars/all.yml
:Those vars are preserved when doing
delegate_to: localhost
and tasks fail when the requested password does not exist. (AFAIKlocalhost
is not part of groupall
, but since it gets delegated from one of the hosts inansible_play_batch
, those vars are preserved)If such a password entry exists, the task runs through flawlessly (although the password does not get used), but if the password entry does not exist, the
lookup
plugin will fail.Thanks for the work that went into this role already, it is a great one that gets the job done!