Articles about jinja2

Ansible filters for taming lists (part 1)

In this article I look at a very simple example of how to convert complex variable structures to simple lists using Jinja2 filters within an Ansible task.

Jinja errors when running Ansible tasks

One of the great things about Ansible is being able to use Jinja filters both in templates and in yaml files.
I came across a not so great thing today though. Running a play I got the following error: "template error while templating string: expected token 'end of print statement', got ':'"
But the error was 'thrown' by a task I haven't changed in ages. It appears it actually related to a jinja filter error in a subsequent task.