Yes, see https://docs.ansible.com/ansible/latest/user_guide/become.html#become-connection-variables
On Mon, 15 Jun 2020 at 00:20, Tony Wong <[email protected]> wrote: > 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. > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CALmkhkogu%2B5EoJRbT%2BAWkGLcUyo_vaOuCs-J11vmA3BJEF8wVg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CALmkhkogu%2B5EoJRbT%2BAWkGLcUyo_vaOuCs-J11vmA3BJEF8wVg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwMArzQ2p1011bm7OiAFdHU%2B0PsGAVV-4kCw9f19mnd4hQ%40mail.gmail.com.
