Skip to content

Instantly share code, notes, and snippets.

@kaplun
Forked from towo/ansible.cfg
Created February 1, 2018 15:16
Show Gist options
  • Save kaplun/16f56c3da2f4e97d38e762f105647243 to your computer and use it in GitHub Desktop.
Save kaplun/16f56c3da2f4e97d38e762f105647243 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