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,210 points
1,571 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,300 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
2,616 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
183 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 16, 2018 in Ansible by shubham
• 7,320 points
3,118 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
2,294 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,250 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,300 points
143 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 27, 2020 in Ansible by MD
• 95,300 points
164 views