Skip to main content
ertius.org

add a file to the Ansible Vault

I keep forgetting, I guess because it's so so simple:

ansible-vault encrypt ./path/to/file

Then ansible.builtin.copy: etc will transparently decrypt it as needed.