--- {%- from "docker/map.jinja" import docker with context %} {% for k,v in docker.containers.items() -%} docker-container-{{ k }}: docker_container.running: - name: {{ k }} {%- for i,j in v.items() %} - {{ i }}: {{ j }} {% endfor -%} {% endfor -%}