Add var to set the jgroups IP per host

This is useful if the default route does not
represent the network you want/need to use for
cluster communication.
This commit is contained in:
Jonathan Wright 2025-05-13 09:15:38 -05:00
commit c614af127e
5 changed files with 13 additions and 2 deletions

View file

@ -39,8 +39,8 @@
{
"name": item,
"address": 'jgroups-' + item,
"inventory_host": hostvars[item].ansible_default_ipv4.address | default(item) + '[' + (keycloak_quarkus_jgroups_port | string) + ']',
"value": hostvars[item].ansible_default_ipv4.address | default(item)
"inventory_host": hostvars[item].keycloak_quarkus_jgroups_ip | default(item) + '[' + (keycloak_quarkus_jgroups_port | string) + ']',
"value": hostvars[item].keycloak_quarkus_jgroups_ip | default(item)
}
] }}
loop: "{{ ansible_play_batch }}"