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,260 points
17,886 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,460 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
2,007 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 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 28, 2020 in Ansible by MD
• 95,460 points
15,114 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,460 points
8,528 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP