Skip to content

Instantly share code, notes, and snippets.

@towo
Created March 18, 2017 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save towo/81aa48f0c2ff2dfbf7852bb704359da3 to your computer and use it in GitHub Desktop.
Save towo/81aa48f0c2ff2dfbf7852bb704359da3 to your computer and use it in GitHub Desktop.
GPG wrapping Ansible Vault
[defaults]
hostfile = some-environment
vault_password_file = bin/gpg-wrapper.sh
#!/bin/sh
VAULT_PW_FILENAME="vault"
gpgp --quiet --batch --use-agent --decrypt $VAULT_PW_FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment