Logic and data separated.Variables are loaded. Dynamic configuration files? Templates are your blades – fed by variables. They support logic.Loops.Conditionals. Ghosts don’t over-complicate.Clarity keeps templates sharp.
Continue reading →
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…
Continue reading →
Templating is a huge work power in Ansible when we want to write reusable code. Just imagine about having to create different playbooks and roles for every host that have a slightly different configuration from each other. That would be nonsense. Luckily we have configuration file templates in Ansible to make our life easier, and…
Continue reading →