--- {%- from "mariadb/map.jinja" import mariadb with context %} {%- for name, database in mariadb.databases.items() %} mariadb-database-{{ name }}: mysql_database.present: - name: {{ name }} - connection_user: {{ mariadb.connection_user }} - connection_pass: {{ mariadb.connection_pass }} {%- endfor %}