2020-12-03 15:52:14 +01:00
|
|
|
---
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "Datenbank einrichten"
|
2020-12-03 15:52:14 +01:00
|
|
|
mysql_db:
|
|
|
|
name: '{{ nextcloud_mysql_db }}'
|
|
|
|
state: present
|
|
|
|
config_file: /etc/mysql/debian.cnf
|
|
|
|
delegate_to: "{{ nextcloud_database_host }}"
|
|
|
|
|
|
|
|
# Todo: Formatierung des Nutzernamens und Zuordnung des hosts schlaegt fehl
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "Datenbank Benutzer einrichten"
|
2020-12-03 15:52:14 +01:00
|
|
|
mysql_user:
|
|
|
|
name: "{{ nextcloud_mysql_user }}"
|
|
|
|
password: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}"
|
|
|
|
priv: "{{ nextcloud_mysql_db }}.{{ inventory_hostname }}:ALL"
|
|
|
|
state: present
|
|
|
|
config_file: /etc/mysql/debian.cnf
|
|
|
|
delegate_to: "{{ nextcloud_database_host }}"
|