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 6 in Ansible by Leena
77 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 6 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 in Ansible by Nicolas
561 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
3 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.