Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run ansible jinja2-template as script

Tags:

ansible

jinja2

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)


1 Answers

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.

like image 105
Konstantin Suvorov Avatar answered Sep 13 '25 16:09

Konstantin Suvorov