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
305 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 by Kavya

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
175 views
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers