--- {%- from "cron/map.jinja" import cron with context %} {%- for key, value in cron.env.items() %} cron-env-{{ key.lower }}: cron.env_present: - name: {{ value.name }} - value: {{ value.command }} {%- endfor %}