ERROR Attempting to decrypt but no vault secrets found

0 votes

Hi Guys,

I have created one vault in Ansible. Now I want to run my Ansible-Playbook, but it is showing me the below error.

$ ansible-playbook mail.yml
ERROR! Attempting to decrypt but no vault secrets found

How can I solve this error?

Aug 11, 2020 in Ansible by akhtar
• 38,180 points
7,494 views

1 answer to this question.

0 votes

Hi@akhtar,

As you are using a vault in your playbook, then you need to pass the vault password. Otherwise, it will give an error. You can use the below command to avoid this error.

$ ansible-playbook --ask-vault-pass mail.yml

Now it will ask your vault password and after that, it will run automatically.

answered Aug 11, 2020 by MD
• 95,220 points

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying "No handler was ready to authenticate. 1 handlers were checked"

You are mixing underscore and hyphen. cat /etc/ansible/ec2-vars/te ...READ MORE

answered Mar 13, 2019 in Ansible by Kim
901 views
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,138 views
+2 votes
1 answer
0 votes
1 answer

No match for argument: ansible Error: Unable to find a match

Hi@akhtar, Ansible is not part of your RedHat ...READ MORE

answered Jul 27, 2020 in Ansible by MD
• 95,220 points
4,020 views
0 votes
1 answer

No match for argument: sshpass Error: Unable to find a match

Hi@akhtar, The sshpass software is not part of ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,220 points
1,313 views