diff --git a/contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2 b/contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2 index 3089256c9..e985d255f 100644 --- a/contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2 +++ b/contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2 @@ -16,7 +16,7 @@ { "addresses": [ { - "ip": "{{ hostvars[node]['ansible_facts']['default_ipv4']['address'] }}" + "ip": "{{ hostvars[node].ip }}" } ], "ports": [ diff --git a/contrib/network-storage/heketi/roles/provision/templates/topology.json.j2 b/contrib/network-storage/heketi/roles/provision/templates/topology.json.j2 index b0ac29d7b..c19ce3286 100644 --- a/contrib/network-storage/heketi/roles/provision/templates/topology.json.j2 +++ b/contrib/network-storage/heketi/roles/provision/templates/topology.json.j2 @@ -12,7 +12,7 @@ "{{ node }}" ], "storage": [ - "{{ hostvars[node]['ansible_facts']['default_ipv4']['address'] }}" + "{{ hostvars[node].ip }}" ] }, "zone": 1