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,



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e4893842-18a8-4bdf-9f5f-c358aa966441%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to