2020-12-03 15:52:14 +01:00
|
|
|
---
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Database | Erstelle Datenbank | {{ item.name }}"
|
|
|
|
community.mysql.mysql_db:
|
|
|
|
name: "{{ item.database }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
state: present
|
2020-12-31 02:30:14 +01:00
|
|
|
login_unix_socket: "{{ mysql_socket }}"
|
|
|
|
login_user: root
|
2021-06-26 01:02:13 +02:00
|
|
|
delegate_to: "{{ database_host }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
|
2023-10-11 16:50:10 +02:00
|
|
|
- name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}"
|
2023-05-21 23:01:31 +02:00
|
|
|
community.mysql.mysql_user:
|
|
|
|
name: "{{ item.database }}"
|
2021-06-26 01:14:24 +02:00
|
|
|
host: "{{ inventory_hostname }}"
|
2021-06-26 02:32:29 +02:00
|
|
|
password: "{{ nextcloud_db_password }}"
|
2023-05-21 23:01:31 +02:00
|
|
|
priv: "{{ item.database }}.*:ALL"
|
2020-12-03 15:52:14 +01:00
|
|
|
state: present
|
2020-12-31 02:30:14 +01:00
|
|
|
login_unix_socket: "{{ mysql_socket }}"
|
|
|
|
login_user: root
|
2021-01-31 03:00:26 +01:00
|
|
|
update_password: on_create
|
2021-06-26 01:02:13 +02:00
|
|
|
delegate_to: "{{ database_host }}"
|