Skip to content

Instantly share code, notes, and snippets.

@ouyi
Last active December 27, 2017 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ouyi/cf2901da41d02446347547a42cf5185d to your computer and use it in GitHub Desktop.
Save ouyi/cf2901da41d02446347547a42cf5185d to your computer and use it in GitHub Desktop.
ansible vault diff
# [your_project]$ cat .gitattributes
prod/group_vars/vaulted* diff=ansible-vault-prod merge=binary
# [your_project]$ cat ~/.gitconfig
[diff "ansible-vault-prod"]
textconv = ansible-vault view --vault-password-file ~/vault_prod.txt
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment