# Ansible 2.0.0.2 doesn't recognize the vault-password file

**URL:** <https://forum.ansible.com/t/ansible-2-0-0-2-doesnt-recognize-the-vault-password-file/20490>\
**Category:** Ansible Project\
**Created:** [February 8, 2016, 6:14pm UTC](https://forum.ansible.com/t/ansible-2-0-0-2-doesnt-recognize-the-vault-password-file/20490 "2016-02-08T18:14:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![athreya\_vc](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@athreya\_vc](https://forum.ansible.com/u/athreya_vc)\
**Post date:** [February 8, 2016, 6:14pm UTC](https://forum.ansible.com/t/ansible-2-0-0-2-doesnt-recognize-the-vault-password-file/20490/1 "2016-02-08T18:14:27Z")

</div>

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,
