You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also set ANSIBLE_VAULT_PASSWORD_FILE environment variable, e.g. ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass.txt and Ansible will automatically search for the password in that file.
The text was updated successfully, but these errors were encountered:
tommarshall
changed the title
Support setting --vault-password-file from environment variable
Support setting vault password file from environment variable
Aug 17, 2016
Because:
* Ansible Vault allows the vault password file to be set with a
`ANSIBLE_VAULT_PASSWORD_FILE` environment variable.
`git-diff-ansible-vault` should do the same, ref:
http://docs.ansible.com/ansible/playbooks_vault.html#running-a-playbook-with-vault
This change:
* Use `ANSIBLE_VAULT_PASSWORD_FILE` environment variable for vault path
if it's value exists as file.
* `--vault-password-file` takes precedence if set, same as it does for
`ansible-vault`.
Fixes#9
Ansible Vault allows the vault password file to be set with an environment variable.
git-diff-ansible-vault
should do the same.http://docs.ansible.com/ansible/playbooks_vault.html#running-a-playbook-with-vault
The text was updated successfully, but these errors were encountered: