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