Ansible Vault - shekharshamra/ansible-playbooks GitHub Wiki

To encrypt decrypt ansible playbook etc

  1. Encrypt playbook

ansible-vault create playbook.yml

  1. Edit vault file

ansible-vault edit playbook.yml

  1. Decrypt file

ansible-vault decrypt playbook.yml

  1. run ansible playbook with vault

ansible-playbook paybook.yml --ask-vault-pass