Pass multiple password files while running ansible playbook

0 votes
I have two password files which I would like to pass while running my ansible playbook. The problem is both the files are encrypted with different passwords. Can I pass multiple passwords?
Mar 6, 2019 in Ansible by Neha

1 answer to this question.

0 votes

Hey @Neha, you can pass your password file running the playbook in the following manner:

ansible-playbook --vault-password-file password-file site.yml

As far as I remember, the documentation says that all encrypted files must be encrypted using the same vault password. 

answered Mar 6, 2019 by Yesha

Related Questions In Ansible

0 votes
1 answer

Pass sudo password while executing Ansible playbook

Hey @Bob, try something like this: ansible-playbook playbook.yml ...READ MORE

answered Jul 22, 2019 in Ansible by Akash
0 votes
1 answer

Error saying permission denied while running ansible playbook

Hey @Neha, add the following line to ...READ MORE

answered Feb 8, 2019 in Ansible by Amy
0 votes
1 answer
0 votes
1 answer

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

answered Mar 12, 2019 in Ansible by William
+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
+2 votes
1 answer