Error while using ansible vault "ERROR! input is not vault encrypted data for vars/vars-mysql-config.yml"

0 votes

I've created a file in my home directory which contains the password called

.vault.txt

inside of that, I have the password. And in the ansible.cfg in my repository I have the variable:

vault_pswd_file = ~/.vault.txt

Didn't work as expected. So I tried to force ansible-vault command to read the file with this parameter

ansible-vault decrypt --vault-pswd-file ~/.vault.txt vars/vars-mysql-config.yml

Output error:

ERROR! input is not vault encrypted data for vars/vars-mysql-config.yml
Jan 29 in Ansible by Bhupan
93 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Bhupan, I think your file is already decrypted and hence the error. If you're trying to view the file use view instead of decrypt.

ansible-vault view --vault-pswd-file ~/.vault.txt vars/vars-mysql-config.yml
answered Jan 29 by Kavya

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

What files can be encrypted using the Ansible Vault?

Yes @Umang, Ansible Vault is used to ...READ MORE

answered Jan 29 in Ansible by Kavya
43 views
+13 votes
2 answers
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.