mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-07-30 11:24:59 +00:00
only try to create cluster node list when tcpping is selected
This commit is contained in:
@@ -187,7 +187,7 @@
|
|||||||
- restart keycloak
|
- restart keycloak
|
||||||
when: not keycloak_remotecache.enabled or keycloak_config_override_template | length > 0
|
when: not keycloak_remotecache.enabled or keycloak_config_override_template | length > 0
|
||||||
|
|
||||||
- name: Create cluster node list
|
- name: Create tcpping cluster node list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
keycloak_cluster_nodes: >
|
keycloak_cluster_nodes: >
|
||||||
{{ keycloak_cluster_nodes | default([]) + [
|
{{ keycloak_cluster_nodes | default([]) + [
|
||||||
@@ -199,6 +199,7 @@
|
|||||||
}
|
}
|
||||||
] }}
|
] }}
|
||||||
loop: "{{ ansible_play_batch }}"
|
loop: "{{ ansible_play_batch }}"
|
||||||
|
when: keycloak_ha_enabled and keycloak_ha_discovery == 'TCPPING'
|
||||||
|
|
||||||
- name: "Deploy {{ keycloak.service_name }} config with remote cache store to {{ keycloak_config_path_to_standalone_xml }}"
|
- name: "Deploy {{ keycloak.service_name }} config with remote cache store to {{ keycloak_config_path_to_standalone_xml }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user