Enable db by default when ha is enabled
parent
aaae00ad3a
commit
f4b60dc764
|
@ -36,7 +36,7 @@ keycloak_url: "http://{{ keycloak_host }}:{{ keycloak_http_port }}"
|
||||||
keycloak_management_url: "http://{{ keycloak_host }}:{{ keycloak_management_http_port }}"
|
keycloak_management_url: "http://{{ keycloak_host }}:{{ keycloak_management_http_port }}"
|
||||||
# enable auto configuration for database backend, clustering and remote caches on infinispan
|
# enable auto configuration for database backend, clustering and remote caches on infinispan
|
||||||
keycloak_ha_enabled: False
|
keycloak_ha_enabled: False
|
||||||
keycloak_db_enabled: False
|
keycloak_db_enabled: "{{ True if keycloak_ha_enabled else False }}"
|
||||||
|
|
||||||
# keycloak administration console user
|
# keycloak administration console user
|
||||||
keycloak_admin_user: admin
|
keycloak_admin_user: admin
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
that:
|
that:
|
||||||
- (keycloak_ha_enabled and keycloak_db_enabled) or (not keycloak_ha_enabled and keycloak_db_enabled) or (not keycloak_ha_enabled and not keycloak_db_enabled)
|
- (keycloak_ha_enabled and keycloak_db_enabled) or (not keycloak_ha_enabled and keycloak_db_enabled) or (not keycloak_ha_enabled and not keycloak_db_enabled)
|
||||||
quiet: True
|
quiet: True
|
||||||
fail_msg: "Cannot install HA setup without a backend database service. Check keycloak_ha_enabled and keycloak_ha_enabled"
|
fail_msg: "Cannot install HA setup without a backend database service. Check keycloak_ha_enabled and keycloak_db_enabled"
|
||||||
success_msg: "{{ 'Configuring HA' if keycloak_ha_enabled else 'Configuring standalone' }}"
|
success_msg: "{{ 'Configuring HA' if keycloak_ha_enabled else 'Configuring standalone' }}"
|
||||||
|
|
||||||
- name: "Validate credentials"
|
- name: "Validate credentials"
|
||||||
|
|
Loading…
Reference in New Issue