Ansible Vault

Document Control

TODO:

  • Overall structure.
  • Initial draft complete
  • Testing
  • Ready

Creating an encrypted vault

Using vault
ansible-vault create secrets.yml
nsible-vault edit secrets.yml
ansible-playbook --ask-vault-pass site.yml
ansible-vault rekey secrets.yml
ansible-vault decrypt secrets.yml
ansible-playbook --vault-password-file vault-password-file site.yml

Vault files can be included in your playbook with the vars_files directive or passed to ansible-playbook with -e @file.yml.


Last update: 2020-01-19