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
215 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 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
1,883 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
147 views
0 votes
1 answer
0 votes
3 answers