I have a bash script that i would like to run locally using the Ansible shell module , the problem is that want to use some encrypted variables from Ansible-Vault in that bash script but I think for security reasons ansible-vault variables are not rendered from the shell module…
Thanks for the reply Tom but both of your suggestions doesn’t really help with the security concerns. It would be simpler to just hardcode the values on the script this way.
The approach I’m looking is to use the ansible-vault variables on the fly with the script and after the execution step to not leave any traces.
As per a recent post of mine, no_log does not prevent the command arguments nor environment variables from showing up in log output despite documentation alluding to this.
That’s what I wanted to say Tom, depositing the secrets into a file alongside the script is the same thing as having them hardcoded in the script… which on both cases I want to avoid…