diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml index 4ba82b18..cd1b0cb4 100644 --- a/roles/nextcloud/defaults/main.yml +++ b/roles/nextcloud/defaults/main.yml @@ -11,5 +11,5 @@ nextcloud_hostname: "nextcloud" # username / passwords nextcloud_sql_user: "nextcloud-user" -nextcloud_sql_pass: "nextcloud-pass" -nextcloud_sql_secret: "nextcloud-secret" \ No newline at end of file +nextcloud_sql_password: "nextcloud-pass" +nextcloud_sql_root_password: "nextcloud-secret" \ No newline at end of file diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 6ae1b9cd..7e652528 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -17,8 +17,8 @@ env: MYSQL_DATABASE: "nextcloud" MYSQL_USER: "{{ nextcloud_sql_user }}" - MYSQL_PASSWORD: "{{ nextcloud_sql_pass }}" - MYSQL_ROOT_PASSWORD: "{{ nextcloud_sql_secret }}" + MYSQL_PASSWORD: "{{ nextcloud_sql_password }}" + MYSQL_ROOT_PASSWORD: "{{ nextcloud_sql_root_password }}" restart_policy: unless-stopped memory: 1g @@ -37,7 +37,7 @@ MYSQL_HOST: "mysql" MYSQL_DATABASE: "nextcloud" MYSQL_USER: "{{ nextcloud_sql_user }}" - MYSQL_PASSWORD: "{{ nextcloud_sql_pass }}" + MYSQL_PASSWORD: "{{ nextcloud_sql_password }}" NEXTCLOUD_TRUSTED_DOMAINS: "{{ nextcloud_hostname }}.{{ ansible_nas_domain }}" restart_policy: unless-stopped memory: 1g