From 5eead6fc027634c31cf18ec50672b87e0a9bdece Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Tue, 14 Dec 2021 13:51:01 +0100 Subject: [PATCH] Fix initd script --- roles/keycloak/templates/keycloak-service.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/keycloak/templates/keycloak-service.sh.j2 b/roles/keycloak/templates/keycloak-service.sh.j2 index 66fece0..9db7d5a 100755 --- a/roles/keycloak/templates/keycloak-service.sh.j2 +++ b/roles/keycloak/templates/keycloak-service.sh.j2 @@ -81,8 +81,8 @@ startKeycloak() { -Djboss.https.port=${KEYCLOAK_HTTPS_PORT} \ -Djboss.management.http.port=${KEYCLOAK_MANAGEMENT_HTTP_PORT} \ -Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_PORT} \ - {% if ansible_facts.virtualization_type == 'docker' %}-Djava.net.preferIPv4Stack=true \{% endif %} - -Djboss.node.name={{ inventory_hostname }} 2>&1 >> "${KEYCLOAK_LOGFILE}" & + -Djboss.node.name={{ inventory_hostname }} {% if ansible_facts.virtualization_type in ['docker','oci'] %}-Djava.net.preferIPv4Stack=true {% endif %}\ + 2>&1 >> "${KEYCLOAK_LOGFILE}" & echo "${!}" > "${KEYCLOAK_PIDFILE}" fi }