templating

Adding Commas Between Elements in Jinja2

Introduction Creating a comma-separated list is a common task in templating, but ensuring no trailing comma appears after the last element can be tricky.

Continue reading

Generate Clean YAML Output from Ansible Facts

Ansible is a powerful tool for automating tasks, but when working with dynamically generated data, such as Ansible facts, it can sometimes be tricky to produce clean, well-formatted output.

Continue reading