tag specific to the systemd unit.
This commit is contained in:
parent
a0a92dc3c4
commit
62ad034604
|
@ -15,6 +15,7 @@
|
||||||
- keycloak_conf
|
- keycloak_conf
|
||||||
- keycloak_providers
|
- keycloak_providers
|
||||||
- keycloak_providers_jar
|
- keycloak_providers_jar
|
||||||
|
- keycloak_systemd_unit
|
||||||
block:
|
block:
|
||||||
- name: Install the keycloak systemd unit
|
- name: Install the keycloak systemd unit
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#
|
||||||
|
# Systemd unit file that manages Keycloak
|
||||||
|
#
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Keycloak Application Server, running with Quarkus
|
Description=Keycloak Application Server, running with Quarkus
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
@ -12,6 +15,8 @@ Before=httpd.service
|
||||||
Before=apache2.service
|
Before=apache2.service
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
StartLimitIntervalSec=500
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=JAVA={{ keycloak_openjdk_bin }}
|
Environment=JAVA={{ keycloak_openjdk_bin }}
|
||||||
|
@ -22,9 +27,12 @@ Environment=JAVA_OPTS_APPEND="-Djgroups.bind_addr={{ keycloak_jgroups_multicast_
|
||||||
{% endif %}
|
{% endif %}
|
||||||
User={{ keycloak_user }}
|
User={{ keycloak_user }}
|
||||||
Group={{ keycloak_user }}
|
Group={{ keycloak_user }}
|
||||||
|
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start
|
||||||
SuccessExitStatus=0 143
|
SuccessExitStatus=0 143
|
||||||
UMask=0027
|
UMask=0027
|
||||||
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start
|
RestartSec=10
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue