--- {%- from "users/map.jinja" import groups with context -%} {%- for name,group in groups.items() %} group-{{ name }}: {%- if group.enabled %} group.present: {%- else %} group.absent: {%- endif %} - name: {{ name }} {% endfor %}