Tony_Wong
(Tony Wong)
June 14, 2020, 10:20pm
1
can i put a sudo password and other passwords together in a vault file?
when i run thios playbook, i want it to read the vault file w/o asking me for the password anymore
ansible-playbook --ask-vault-pass vcenter_sddc_deploy.yml --ask-become-pass -vvv
Yes, see
https://docs.ansible.com/ansible/latest/user_guide/become.html#become-connection-variables
can i put a sudo password and other passwords together in a vault file?
when i run thios playbook, i want it to read the vault file w/o asking me for the password anymore
ansible-playbook --ask-vault-pass vcenter_sddc_deploy.yml --ask-become-pass -vvv
Specifying above ‘–ask…’ options will do the opposite (ask for password) from what you want (don’t ask).
So don’t use those options I you don’t want to get asked.