Drop service logfile, symlink log directory instead
parent
94aecfcd87
commit
d7597771cf
|
@ -6,9 +6,17 @@
|
||||||
tags:
|
tags:
|
||||||
- prereqs
|
- prereqs
|
||||||
|
|
||||||
- include_tasks: tasks/install.yml
|
- name: Include install tasks
|
||||||
|
include_tasks: tasks/install.yml
|
||||||
|
|
||||||
- include_tasks: tasks/systemd.yml
|
- name: Include systemd tasks
|
||||||
|
include_tasks: tasks/systemd.yml
|
||||||
|
|
||||||
|
- name: Link default logs directory
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{keycloak_jboss_home}}/standalone/log"
|
||||||
|
dest: /var/log/keycloak
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Check admin credentials by generating a token
|
- name: Check admin credentials by generating a token
|
||||||
|
|
|
@ -83,8 +83,7 @@ startKeycloak() {
|
||||||
-Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_PORT} \
|
-Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_PORT} \
|
||||||
-Djboss.node.name={{ inventory_hostname }} \
|
-Djboss.node.name={{ inventory_hostname }} \
|
||||||
{% if keycloak_prefer_ipv4 %}-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true {% endif %}\
|
{% if keycloak_prefer_ipv4 %}-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true {% endif %}\
|
||||||
{% if keycloak_config_standalone_xml is defined %}--server-config={{ keycloak_config_standalone_xml }}{% endif %} \
|
{% if keycloak_config_standalone_xml is defined %}--server-config={{ keycloak_config_standalone_xml }}{% endif %} &
|
||||||
2>&1 >> "${KEYCLOAK_LOGFILE}" &
|
|
||||||
while [ ! -f ${KEYCLOAK_PIDFILE} ]; do sleep 1; done
|
while [ ! -f ${KEYCLOAK_PIDFILE} ]; do sleep 1; done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue