Ansible Vault - shekharshamra/ansible-playbooks GitHub Wiki
To encrypt decrypt ansible playbook etc
- Encrypt playbook
ansible-vault create playbook.yml
- Edit vault file
ansible-vault edit playbook.yml
- Decrypt file
ansible-vault decrypt playbook.yml
- run ansible playbook with vault
ansible-playbook paybook.yml --ask-vault-pass