--- {%- from "docker/map.jinja" import docker with context %} docker-pkgs: pkg.installed: - pkgs: {{ docker.pkgs }} docker-pip-pkgs: pip.installed: {%- for pip in docker.pip_pkgs %} - name: {{ pip }} {%- endfor %}