diff --git a/ansible/roles/apps/templates/nextcloud-settings.yaml b/ansible/roles/apps/templates/nextcloud-settings.yaml
index 204b48ace2525faa65ca805ef00e61c0dd7a8373..33f7a5e8ce890e0359ecf42618c1474f4650a473 100644
--- a/ansible/roles/apps/templates/nextcloud-settings.yaml
+++ b/ansible/roles/apps/templates/nextcloud-settings.yaml
@@ -49,24 +49,24 @@ nextcloud:
   readinessProbe:
     initialDelaySeconds: 120
 
+  # Enable and configure MariaDB chart
+  mariadb:
+    db:
+      password: "{{ nextcloud_mariadb_password }}"
+    enabled: true
+    master:
+      persistence:
+        ## Enable PostgreSQL persistence using Persistent Volume Claims.
+        enabled: true
+        size: 512Mi
+    replication:
+      enabled: false
+    rootUser:
+      password: "{{ nextcloud_mariadb_root_password }}"
+
 setupApps:
   backoffLimit: 20
 
-# Enable and configure MariaDB chart
-mariadb:
-  db:
-    password: "{{ nextcloud_mariadb_password }}"
-  enabled: true
-  master:
-    persistence:
-      ## Enable PostgreSQL persistence using Persistent Volume Claims.
-      enabled: true
-      size: 512Mi
-  replication:
-    enabled: false
-  rootUser:
-    password: "{{ nextcloud_mariadb_root_password }}"
-
 onlyoffice:
   server_name: "office.{{ domain }}"
   ingress: