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