Move out some options from the command line to the conf file.
This commit is contained in:
parent
d9f914aff7
commit
a551dbbe54
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: keycloak-providers | Get the keycloak providers
|
- name: keycloak-providers | Get the keycloak providers
|
||||||
community.general.maven_artifactmaven_artifact:
|
community.general.maven_artifact:
|
||||||
artifact_id: "{{ item.maven_id }}"
|
artifact_id: "{{ item.maven_id }}"
|
||||||
version: "{{ item.maven_version | default('latest') }}"
|
version: "{{ item.maven_version | default('latest') }}"
|
||||||
group_id: "{{ item.maven_group_id }}"
|
group_id: "{{ item.maven_group_id }}"
|
||||||
|
|
|
@ -39,6 +39,11 @@ proxy-headers={{ keycloak_reverse_proxy_type }}
|
||||||
hostname={{ keycloak_hostname }}
|
hostname={{ keycloak_hostname }}
|
||||||
{% endif %}
|
{% 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 %}
|
{% if keycloak_external_avatar_dir_enabled %}
|
||||||
spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir}}
|
spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -24,7 +24,7 @@ User={{ keycloak_user }}
|
||||||
Group={{ keycloak_user }}
|
Group={{ keycloak_user }}
|
||||||
SuccessExitStatus=0 143
|
SuccessExitStatus=0 143
|
||||||
UMask=0027
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue