Can I specify the vault password once i'm already in the playbook (but 
obviously before I've tried to read from the vault file)?

Right now i have a few different text files containing different passwords 
for the vaults for different instances of our app. Once I've figured out 
what instance I need to work with, I'd like to load the contents of that 
file as the password so I can load variables from the vault files. 
Otherwise I need to provide the vault file on the CLI every time (kind-of a 
pain to type out a lot), and I can't deal with multiple vaults with 
different passwords in the same playbook.

The different vault files need to have different passwords (not all 
developers should have access to variables for all instances).

At the moment, I have `vault_password_file` in `ansible.cfg` pointing to a 
symlink that points to the actual password file. I have tried changing that 
symlink to point to the correct password via a playbook task before 
accessing the desired vault, but this doesn't seem to work - my guess is 
`ansible-playbook` reads the value into memory at boot and not from the 
file when it's needed.

Thanks in advance, Neil.


-- 
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/f032c71d-619f-4560-9d23-c37c16ebbe28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to