How to pass ansible vault password from playbook into a script via script tag. I have a use case where I need to decrypt a file inside my python script which will be invoked via "script" tag. My playbook will be invoked with vault-password-file
Asked
Active
Viewed 220 times
0
-
This question needs formatting and better spelling. – ALUFTW Feb 15 '21 at 06:13
-
Ansible does not provide a mechanism to pass in the vault password like this. I think you would be better off letting Ansible decrypt the file, and then pass the decrypted value as input to your script. – larsks Feb 27 '21 at 13:45
-
But, passing the decrypted value into a script becomes visible when you run ansible with high verbose. – Sagar Thirumala Mar 06 '21 at 22:17