Ansible 2 · Vault (secrets)

Encrypt an existing file

Encrypt an existing file in place.

ansible-vault encrypt vars/prod.yml

Official Ansible 2 documentation

More vault (secrets) commands

All vault (secrets) commands · Ansible 2 cheatsheet

Was this page helpful?