AMW-628 Replace deprecated top-level fact variables with ansible_facts syntax

This commit is contained in:
Martin Cihlar
2026-09-10 13:26:02 +02:00
parent 6644207e5d
commit 9d56a54bd8
12 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -256,8 +256,8 @@
{
"name": item,
"address": 'jgroups-' + item,
"inventory_host": hostvars[item].ansible_default_ipv4.address | default(item) + '[' + (keycloak_jgroups_port | string) + ']',
"value": hostvars[item].ansible_default_ipv4.address | default(item)
"inventory_host": hostvars[item].ansible_facts['default_ipv4']['address'] | default(item) + '[' + (keycloak_jgroups_port | string) + ']',
"value": hostvars[item].ansible_facts['default_ipv4']['address'] | default(item)
}
] }}
loop: "{{ ansible_play_batch }}"