updated mariadb state

This commit is contained in:
Paul 2023-09-14 16:45:40 +02:00
parent f6431ecd09
commit 26176f89f3
2 changed files with 7 additions and 7 deletions

View File

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

View File

@ -1,9 +1,9 @@
---
{%- from "mariadb/map.jinja" import mariadb with context %}
{%- for key, user in mariadb.users.items() %}
mariadb-user-{{ user.name }}:
{%- for name, user in mariadb.users.items() %}
mariadb-user-{{ name }}:
mysql_user.present:
- name: {{ user.name }}
- name: {{ name }}
- password: {{ user.password }}
- host: '{{ user.host }}'
- connection_user: {{ mariadb.connection_user }}
@ -15,7 +15,7 @@ mariadb-grants-{{ grant.name }}:
- name: {{ grant.name }}
- grant: '{{ grant.grant }}'
- database: '{{ grant.database }}'
- user: '{{ user.name }}'
- user: '{{ name }}'
- host: '{{ user.host }}'
- connection_user: {{ mariadb.connection_user }}
- connection_pass: {{ mariadb.connection_pass }}