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