This can still be done, you can set the ansible_become_password variable using
the vars argument like so;
- command: whoami
become: yes
become_user: user
vars:
ansible_become_password: password
The vars key can be used to set any variable for that particular task and it
can even include ansible_become_user if you want to override the host variable
if set where become_user is just a fallback.
Thanks
Jordan
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/952216da-f444-48da-a2d9-c08d8515e6c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.