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
• 17,925 views
Which one to get the Ethernet interface details of all the managed nodes using an an Sibley facts variable?

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
0 votes
Afsalvaliyapeediyakal
answered Jul 10, 2021 by anonymous

edited Mar 5, 2025

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
• 7,435 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
• 2,760 views