Using ansible-vault with password store and gpg-agent

I'm using pass to store my passwords. ansible-vault is a easy way to encrypt your ansible data files. So I'm generating random passwords to encrypt my vaults and throw them into pass. I'm using a gpg agent as well, so I don't have to retype my password for the next 5 minutes.

There are many ways describing how to write scripts and rather complex stuff for combining ansible-vault and a gpg-agent... Turnes out you just need pass and cat as described in my cheatsheet.

Last update: March 22, 2021