Skip to content

Commit

Permalink
only try to create cluster node list when tcpping is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Mar 8, 2023
1 parent a7c9304 commit 68bcff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/keycloak/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
- restart keycloak
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:
keycloak_cluster_nodes: >
{{ keycloak_cluster_nodes | default([]) + [
Expand All @@ -199,6 +199,7 @@
}
] }}
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 }}"
become: yes
Expand Down

0 comments on commit 68bcff3

Please sign in to comment.