Ansible Basics 07: Templates and Jinja2

In configuration management and automation, templates play a very important role. They allow you to create dynamic, reusable file content by using variables and other expressions in text files. In the context of Ansible, the template engine of choice is Jinja2. You will create mostly configuration templates in Jinja2 format, and address them in your playbooks with the ansible.builtin.template module. In this lesson you will also learn how can you use expressions in the template files.

Continue reading “Ansible Basics 07: Templates and Jinja2”