1.

How to automate the password input in playbook using encrypted files?

Answer»

<P>To automate password input we can have a password file for all the passwords of encrypted files will be SAVED and ansible can make a call to fetch those when required.

ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q user@gateway.example.com"'

This can ALSO be achieved by having a SEPARATE script that specifies the passwords. But in this case, we need to print a password to stdout to work without annoying errors.

ansible-playbook launch.yml --vault-password-file ~/ .vault_pass.py


Discussion

No Comment Found