Can I run an ansible jinja2-template as script directly on the client?
(Instead of copying the template first as file and then giving it the executable rights and then execute it)
No.
There's a script module, but it doesn't work with templates – only with "ready" scripts.
But you can template your script locally and then use script
module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With