Environment Variable as Vault Key

AquaMCU
Thu, 06 Mar 2025 19:48:28 +0000
Get Help

Hi Ansible community.

I want to use ansible vault. Since I do not want to store my vault key in a file and I do not want to type it in every time I run a playbook, I wonder, if I can do this:

Store the vault key in an environment variable for example ANSIBLE_VAULT_KEY
This gets used everytime I run a playbook. When I am finished, I close the session or empty the variable.

What do you think? Is it possible? That would speed up my workflow and make my installation much faster.

Oliver

6 posts - 5 participants