Python script to decrypt while running the playbook - Ansible Vault

0 votes
I have an ansible playbook that has few variables that are encrypted using the vault. I have a python script that has the passwords to decrypt those variables. How do I embed that script while running the playbook?
Mar 7, 2019 in Ansible by Leena
3,327 views

1 answer to this question.

0 votes

Ansible provides a feature where you can pass the password file or a script to be used while running the playbook. You can use --vault-password-file flag for this purpose and then add the filename. Something like this:

ansible-playbook site.yml --vault-password-file pswd.py
answered Mar 7, 2019 by William

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

answered Jan 17, 2019 in Ansible by Nicolas
15,563 views
0 votes
1 answer
+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
3,950 views
+2 votes
1 answer
+1 vote
3 answers
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