{“msg”: “Attempting to decrypt but no vault secrets found”}

The solution for “{“msg”: “Attempting to decrypt but no vault secrets found”}” can be found here. The following code will assist you in solving the problem.

ansible-playbook test.yml –vault-password-file path_to/vault_secret.sh

or

#Add to ansible.cfg:
[defaults]
vault_password_file=path_to/vault_secret.sh

or

ansible-playbook copy.yaml -i hosts.ini –ask-vault-pass

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in