Skip to content
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

Support --vault-password-file script #8

Open
tommarshall opened this issue Aug 17, 2016 · 0 comments
Open

Support --vault-password-file script #8

tommarshall opened this issue Aug 17, 2016 · 0 comments

Comments

@tommarshall
Copy link
Owner

Ansible Vault's --vault-password-file can accept a script. git-diff-ansible-vault's argument should do the same.

http://docs.ansible.com/ansible/playbooks_vault.html#running-a-playbook-with-vault

If you are using a script instead of a flat file, ensure that it is marked as executable, and that the password is printed to standard output. If your script needs to prompt for data, prompts can be sent to standard error.

tommarshall added a commit that referenced this issue Oct 25, 2016
Because:

* Ansible Vault's `--vault-password-file` can accept a script.
  `git-diff-ansible-vault`'s argument should do the same, ref:
  http://docs.ansible.com/ansible/playbooks_vault.html#running-a-playbook-with-vault

This change:

* Adds a test.
* This functionality was already implicitly supported.

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

No branches or pull requests

1 participant