Ansible 2.0.0.2 doesn't recognize the vault-password file

Hi,

I am using ansible 2.0.0.2. I am trying to setup encrypted credentials in a playbook.

ansible-vault create roles/testrole/vars/vault_pass.yml --vault-password-file=.vault_pass.txt

The above command prompts for a password and I get the a message for successful encryption

But when I run the Ansible plyabook I get, {“failed”: true, “msg”: “ERROR! Decryption failed”}

Edit fails too

ansible-vault edit --vault-password-file=.vault_pass.txt roles/testrole/vars/vault_pass.yml

ERROR! A password is required to use Ansible’s Vault.

Am I not doing it in right way ?

Regards,