template module

The module that fills in a Jinja template with variables and writes the result to a file on each host.

In more detail

src names the template on the control node, dest names the file to write, and the rendering happens separately for every host, so each gets its own values. It compares the rendered text with the existing file and reports changed only when they differ, which makes it idempotent and a natural trigger for a handler.

Related terms

Taught in

References

Certification courses