diff --git a/roles/keycloak/defaults/main.yml b/roles/keycloak/defaults/main.yml index b02053c..1e63593 100644 --- a/roles/keycloak/defaults/main.yml +++ b/roles/keycloak/defaults/main.yml @@ -36,7 +36,7 @@ keycloak_url: "http://{{ keycloak_host }}:{{ keycloak_http_port }}" keycloak_management_url: "http://{{ keycloak_host }}:{{ keycloak_management_http_port }}" # enable auto configuration for database backend, clustering and remote caches on infinispan keycloak_ha_enabled: False -keycloak_db_enabled: False +keycloak_db_enabled: "{{ True if keycloak_ha_enabled else False }}" # keycloak administration console user keycloak_admin_user: admin diff --git a/roles/keycloak/tasks/prereqs.yml b/roles/keycloak/tasks/prereqs.yml index aab3788..b9000da 100644 --- a/roles/keycloak/tasks/prereqs.yml +++ b/roles/keycloak/tasks/prereqs.yml @@ -4,7 +4,7 @@ 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) 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' }}" - name: "Validate credentials"