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
2,019 views

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
5,334 views
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
15,837 views
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
2,650 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,007 views
+2 votes
1 answer
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