mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-06 10:50:31 -07:00
Avoid cmd-line arguments
Fix https://github.com/ansible-middleware/keycloak/pull/187#discussion_r1565779164
This commit is contained in:
parent
4aa862101c
commit
27717d7b4e
1 changed files with 8 additions and 4 deletions
|
@ -7,11 +7,15 @@ After=network.target
|
|||
Type=simple
|
||||
EnvironmentFile=-{{ keycloak_quarkus_sysconf_file }}
|
||||
PIDFile={{ keycloak_quarkus_service_pidfile }}
|
||||
{% if keycloak_quarkus_start_dev %}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start-dev{% if keycloak_quarkus_proxy_headers is defined %} --proxy-headers {{ keycloak_quarkus_proxy_headers }}{% endif -%}{{ '\n' }}
|
||||
{% if keycloak_quarkus_start_dev and keycloak_quarkus_proxy_headers is defined %}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start-dev --proxy-headers {{ keycloak_quarkus_proxy_headers }}
|
||||
{% elif keycloak_quarkus_start_dev and keycloak_quarkus_proxy_headers is not defined %}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start-dev
|
||||
{% elif not keycloak_quarkus_start_dev and keycloak_quarkus_proxy_headers is defined %}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start --optimized --proxy-headers {{ keycloak_quarkus_proxy_headers }}
|
||||
{% else -%}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start --optimized{% if keycloak_quarkus_proxy_headers is defined %} --proxy-headers {{ keycloak_quarkus_proxy_headers }}{% endif -%}{{ '\n' }}
|
||||
{%- endif %}
|
||||
ExecStart={{ keycloak.home }}/bin/kc.sh start --optimized
|
||||
{% endif %}
|
||||
User={{ keycloak.service_user }}
|
||||
Group={{ keycloak.service_group }}
|
||||
{% if keycloak_quarkus_service_restart_always %}
|
||||
|
|
Loading…
Add table
Reference in a new issue