From 4fea915e13946fe496cd069fc2bebaec6aaf56ae Mon Sep 17 00:00:00 2001 From: David Fry Date: Thu, 22 Feb 2024 10:19:50 +0000 Subject: [PATCH] try diff notation --- mojaloop/iac/roles/microk8s/tasks/configure-HA.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojaloop/iac/roles/microk8s/tasks/configure-HA.yml b/mojaloop/iac/roles/microk8s/tasks/configure-HA.yml index e4260eb7..af65502b 100644 --- a/mojaloop/iac/roles/microk8s/tasks/configure-HA.yml +++ b/mojaloop/iac/roles/microk8s/tasks/configure-HA.yml @@ -16,7 +16,7 @@ marker: "# {mark} ANSIBLE MANAGED: microk8s WORKER Cluster Hosts" content: | {% for host in groups[microk8s_group_WORKERS] %} - {{ hostvars[host].ansible_host }} {{ hostvars[host].ansible_hostname }} + {{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }} {% endfor %} when: add_workers_to_hostfile