Useful shortcuts for vi editor

Friday, 20 August 2021

"Attempting to decrypt but no vault secrets found" issue solution

Action
ansible-playbook -i /etc/ansible/hosts /etc/ansible/example.yml -v

Error
Attempting to decrypt but no vault secrets found

Solution
Add "--ask-vault-pass" OR "--vault-password-file <vault-file-path>" option to the end of the playbook command line
e.g.
ansible-playbook -i /etc/ansible/hosts /etc/ansible/example.yml -v --ask-vault-pass