TIL Securing Your Ansible Vault
Credit for this little trick goes to Ironic Badger’s Ansible github repository. Which he has stolen from someone else!
When setting up your Ansible playbooks you can include this script in the top directory and run it from the terminal to add this pre-commit hook. This will check to see if your vault is encrypted before committing to source control. Make sure you set the correct path for your vault!
1 Minute Read