No description
- Shell 100%
| meta | ||
| .gitignore | ||
| ansible.cfg.sample | ||
| README.md | ||
| vault-creds.sh | ||
| vault-keys.sample | ||
| vault-open.sh | ||
| vault-rekey.sh | ||
Ansbile GPG Vault
Encrypted the ansible-vault password with GPG which maybe be keyed to multiple keys, which in turns unlocks the various vault files.
Example creating a new vault password
export KEYID=<your-key-id>
pwgen -n 128 -C | head -n1 | gpg --armor --recipient $KEYID -e -o .vault/vault-pass.gpg
Add the desired key IDs to .vault/vault-keys
Re-key the vault key file when new keys are added
.vault/vault-rekey.sh
Configure ansible to use the provided scripts
ansible-vault --vault-password-file=.vault/vault-open.sh ...
Set defaults in ansible.cfg
[defaults]
vault_password_file=.vault/vault-open.sh
Create a new ansible vault
ansible-vault create new-vault.yml
View without altering the vault
ansible-vault view new-vault.yml
Edit the vault
ansible-vault edit new-vault.yml