Init der Wordpress-Rolle

This commit is contained in:
phil 2021-01-31 02:00:26 +00:00
parent 68befe4832
commit e13a190aaa
2 changed files with 4 additions and 2 deletions

View file

@ -8,13 +8,14 @@
config_file: /etc/mysql/debian.cnf
delegate_to: "{{ nextcloud_database_host }}"
# Todo: Formatierung des Nutzernamens und Zuordnung des hosts schlaegt fehl
- name: "Datenbank Benutzer einrichten"
mysql_user:
name: "{{ nextcloud_mysql_user }}"
host: "{{ nextcloud_host }}"
password: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}"
priv: "{{ nextcloud_mysql_db }}.{{ inventory_hostname }}:ALL"
priv: "{{ nextcloud_mysql_db }}.*:ALL"
state: present
login_unix_socket: "{{ mysql_socket }}"
login_user: root
update_password: on_create
delegate_to: "{{ nextcloud_database_host }}"