Init der Wordpress-Rolle
This commit is contained in:
parent
68befe4832
commit
e13a190aaa
2 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,7 @@ nextcloud_admin_pw: admin
|
|||
nextcloud_database_host: database.kahlo
|
||||
nextcloud_dl_url: https://download.nextcloud.com/server/releases
|
||||
nextcloud_gateway: kahlo.kahlo
|
||||
nextcloud_host: sl-nextcloud.kahlo
|
||||
nextcloud_mysql_db: "nc_{{ common_name }}"
|
||||
nextcloud_mysql_pw: admin
|
||||
nextcloud_mysql_user: "nc_{{ common_name }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue