How to change vault password in Ansible

0 votes

Hi Guys,

I have created one vault in Ansible. Now I want to change the password of this vault. How can I do that?

Aug 11, 2020 in Ansible by akhtar
• 38,260 points
12,923 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use rekey keyword in your ansible-vault command. It allows us to reset the password of a vault. To reset the password of any vault, you can use the below-given command.

$ ansible-vault rekey var.yml
Vault password:
New Vault password:
Confirm New Vault password:
Rekey successful

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

Related Questions In Ansible

0 votes
1 answer

How to set vault password on ansible tower?

On Ansible Tower, go to Settings > ...READ MORE

answered Jan 29, 2019 in Ansible by Yesha
6,171 views
0 votes
1 answer

How to make every machine password less SSH in Ansible?

Do have access to all 1000 machines? ...READ MORE

answered Oct 30, 2020 in Ansible by Anil
1,443 views
0 votes
1 answer

How to regex replace nested values in Ansible

I'm not aware of any built-in method ...READ MORE

answered Jun 17, 2018 in Ansible by shubham
• 7,340 points
5,503 views
0 votes
1 answer

How to configure fact caching in Ansible?

There are two cache plugins: redis and jsonfile. To ...READ MORE

answered Jan 24, 2019 in Ansible by Kennedy
4,028 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

How to decrypt a vault in Ansible?

Hi@akhtar, You can use decrypt keyword in your ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,460 points
638 views
0 votes
1 answer

How to install Ansible in Linux system?

Hi@akhtar, To install Ansible in your Linux system, ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,460 points
971 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