Hi Team,
My requirement is to store the vault key in another server, and as part of
playbook execution, the ansible reads key value from remote server and
decrypts the file on control server. I tried getting the key using modules
like slurp and stored as a variable using set_fact. But how do I use it to
decrypt the content? I tried something like this but didn't help,
- copy:
src="{{vaultfile}}"
dest="{{local_home}}/decrypted_vault.txt"
environment:
ANSIBLE_VAULT_PASSWORD_FILE:{{key}}
Please advise.
--
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/90bfe8ca-19de-41b5-add6-077775c5024a%40googlegroups.com.