--- {%- from "apt/map.jinja" import apt with context %} {% for itemkey, itemvalue in apt.config.items() -%} apt-proxy-{{ itemkey }}: file.managed: - name: /etc/apt/apt.conf.d/{{ k }} - user: root - group: root - mode: "0644" - contents: {{ itemvalue.content }} {% endfor -%}