...

/

Templates

Templates

Let's learn what templates are and how to create them using Jinja2.

What is a template?

Ansible uses Jinja2 templates to enable dynamic expressions and access variables in the group_vars and host_vars data dictionaries. All templates are compiled on the local Linux host at runtime, and then deployed to the target host. This is done to minimize the amount of information passed to the target device, allowing only what is required to ...