Skip to content

Set vault password file via environment variable #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v0.5.0-wip
Choose a base branch
from

Conversation

tommarshall
Copy link
Owner

Because:

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

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
@acrewdson
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants