unable to use ansible vault variable - fatal: [localhost]: FAILED! => {"msg": "Attempting to decrypt but no vault secrets found"}

I have used “ansible-vault encrypt_string ” command to create a encrypted passwed. But not works.

my sample playbook:

This is likely because you aren’t telling ansible that vaults are being used and should be decrypted.