Request you help, after upgrade ansible to 2.6 -devel the password vault is not working as expected, and getting the below error, before the upgrade it was working fine without any issues.
After analyzing further found that when we move the files “target.yml” and “target.pass” to the folder “/home/ansible/.ansible” then the WARNING disappears and get the below error , if these file’s “target.yml” and “target.pass” contain plain text then it works fine. so the entire vault functionality is not working as expected,basically not able to decrypt.
“ERROR! Attempting to decrypt but no vault secrets found”
File under the Folder “/home/ansible/.ansible” File : target.yml
The vault password file(target.pass) should not be empty and should not be encrypted.
The file target.yml which contains the below details should we encrypted.
ansible_user: ansible
ansible_ssh_pass: test
ansible_become_pass: test
The password used to encrypt the file target.yml “test” should me the same in the file target.pass.
As we cannot use plain text in the file target.pass, we have to encrypt the string “test” using ansible-vault encrypt_string and copy the output to the file target.pass.
I’ll need output from the ansible-vault and ansible-playbook commands with the ‘-vvvvv’
verbosity option added to tell you much more.
“Playbook get’s executed successfully with providing the vault password file nor the prompt for a vault password and both the file’s target.pass and target.yml are encrypted.”