Comparisons are used in many places with Ansible. Task conditionals are comparisons. Jinja2 control structures such asĀ if/elif/else blocks, for loops, and macros often use comparisons; some filters use comparisons as well. To master Ansible's usage of Jinja2, it is important to understand what comparisons are available.