diff --git a/molecule/overridexml/templates/custom.xml.j2 b/molecule/overridexml/templates/custom.xml.j2
index 66c58526..53e58f20 100644
--- a/molecule/overridexml/templates/custom.xml.j2
+++ b/molecule/overridexml/templates/custom.xml.j2
@@ -44,7 +44,7 @@
-
+
@@ -481,8 +481,8 @@
default
-
-
+
+
@@ -520,7 +520,7 @@
-
+
@@ -533,15 +533,18 @@
+
+
+
-
+
-
+
diff --git a/roles/keycloak/templates/standalone.xml.j2 b/roles/keycloak/templates/standalone.xml.j2
index 5ee20ed7..6c3c0f87 100644
--- a/roles/keycloak/templates/standalone.xml.j2
+++ b/roles/keycloak/templates/standalone.xml.j2
@@ -539,7 +539,7 @@
-{% if keycloak_modcluster.enabled %}
+{% if keycloak_modcluster.enabled %}
@@ -547,7 +547,7 @@
-{% endif %}
+{% endif %}
@@ -621,6 +621,6 @@
{% endfor %}
-{% endif %}
+{% endif %}