Ansible 2.0.0.2 doesn't recognize the vault-password file

485 views
Skip to first unread message

athreya vc

unread,
Feb 8, 2016, 5:48:10 PM2/8/16
to Ansible Project
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,



Reply all
Reply to author
Forward
0 new messages