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