Hi,
We're using vault files encrypted with multiple vault-id in our projects.
Everything works fine when we do something like:
ansible vault --vault-id generic@~/.ansible/generic-password --vault-id 
prod@~/.ansible/prod-password ...

But it's not convenient way to pass password files for each vault id as cli 
arguments.
Previously, before vault-id, we used single password for everything and we 
just added "vault_password_file=~/.ansible/password" into ansible.cfg.
Is there any way to add multiple password file in ansible.cfg for each 
vault id?
The most straight way as for me, is to add something like this
[defaults]
vault_password_file=generic@~/.ansible/generic-password
vault_password_file=prod@~/.ansible/prod-password

And of course it doesn't work.
But how can I do it right?

Thanks. 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5bd02bbe-31c1-4701-9a84-369f57ae8c18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to