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, 2019 in Ansible by Bhupan
6,564 views

1 answer to this question.

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, 2019 by Kavya

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,041 views
+2 votes
1 answer
0 votes
1 answer

Ansible Error "ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude"

vars_files is not supported for included playbooks ...READ MORE

answered Jun 3, 2019 in Ansible by Tara
4,911 views
+1 vote
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP