--- {%- from "provision/map.jinja" import specs with context %} {% for key, value in specs.items() %} grains-{{ key }}: grains.present: - name: {{ key }} - value: {{ value }} - force: true {% endfor %}