--- {%- from "pkg/map.jinja" import pkg with context %} {%- if pkg.aptpkgs|length > 0 %} pkg-install: pkg.installed: - pkgs: {%- for pkg in pkg.aptpkgs %} - {{ pkg }} {%- endfor %} - refresh: false #- require: # - sls: repos.prereqs {%- endif %}