Hello,

We are using mozilla sops to encrypt our ansible secrets and I want to 
decrypt the file on the go, something like 

ansible --extra-vars "@<$(sops -d secrets.yaml)"

But ansible doesn't support executing a command within the 'extra-vars'.

The workaround currently I am using is
sops -d secrets.yaml > /tmp/secrets
ansible --extra-vars "@/tmp/secrets"
rm /tmp/secrets

Is there a way to execute a command within the 'extra-vars' ? 

Thanks,
Sushant

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ed95e774-d6b6-4d02-b38f-d91bdfe11f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to