Move out some options from the command line to the conf file.

This commit is contained in:
Andrea Dell'Amico 2024-04-02 14:18:40 +02:00
parent d9f914aff7
commit a551dbbe54
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
---
- name: keycloak-providers | Get the keycloak providers
community.general.maven_artifactmaven_artifact:
community.general.maven_artifact:
artifact_id: "{{ item.maven_id }}"
version: "{{ item.maven_version | default('latest') }}"
group_id: "{{ item.maven_group_id }}"

View File

@ -39,6 +39,11 @@ proxy-headers={{ keycloak_reverse_proxy_type }}
hostname={{ keycloak_hostname }}
{% endif %}
{% if keycloak_disabled_features | length %}
features-disabled={% for dis in keycloak_disabled_features %}{{ dis }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
{% if keycloak_preview_features | length %}features={% for feat in keycloak_preview_features %}{{ feat }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
{% if keycloak_external_avatar_dir_enabled %}
spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir}}
{% endif %}

View File

@ -24,7 +24,7 @@ User={{ keycloak_user }}
Group={{ keycloak_user }}
SuccessExitStatus=0 143
UMask=0027
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start{% if not keycloak_optimize_build_at_startup %} --optimized{% endif %}{% if keycloak_disabled_features | length %} --features-disabled={% for dis in keycloak_disabled_features %}{{ dis }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}{% if keycloak_preview_features | length %} --features={% for feat in keycloak_preview_features %}{{ feat }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}{% if keycloak_upgrade_db_at_startup %} --spi-connections-jpa-default-migration-strategy=update{% endif %}
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start{% if not keycloak_optimize_build_at_startup %} --optimized{% endif %}{% if keycloak_upgrade_db_at_startup %} --spi-connections-jpa-default-migration-strategy=update{% endif %}
[Install]
WantedBy=multi-user.target