Search code examples
pythonamazon-web-servicesautomationansibleansible-vault

Is there a way to automate ansible vault within the playbook


After automating pulling the secrets from AWS, I wanted to use Ansible Vault to lock it up, and so I first tested this manually. Is there a way to do this through ansible playbooks. We need to automate it so we don't have to constantly lock and unlock it when we pull a new secret.


Solution

  • I found a nifty website that is exactly what I need. It made use of my second route which was to use a python script to run the vault and place this within the playbook.