## Templates

Ansible embeds the Jinja2 templating engine that can be used to dynamically:

- Set and modify play variables
- Conditional logic
- Generate files such as configurations from variables

Templates are a vital feature provided by the Jinja2 template engine, a powerful piece of software independent of Ansible. Ansible makes this usage as seamless and transparent as possible. Most will not realize they are doing templating when they develop plays with Ansible.

We don't show any specific template examples at the moment because we'll have plenty of opportunity to see templates in action as we cover other topics.

In all actuality, what is covered here only touches upon a few of its most basic features. To go deeper see these docs:

- Jinja2 Template Designer Documentation
- Ansible Jinja2 Filters
- Ansible Jinja2 Tests