From 9d0e23fcf1522400294201d7abefb47e70c4e22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Cor=C3=A9?= Date: Fri, 10 Dec 2021 20:46:28 +0100 Subject: [PATCH] Omit ipv6 when not present (#4303) --- .../infra-equinix-metal-create-inventory/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles-infra/infra-equinix-metal-create-inventory/tasks/main.yaml b/ansible/roles-infra/infra-equinix-metal-create-inventory/tasks/main.yaml index 32b555fb28d..1b76ff6cfdf 100644 --- a/ansible/roles-infra/infra-equinix-metal-create-inventory/tasks/main.yaml +++ b/ansible/roles-infra/infra-equinix-metal-create-inventory/tasks/main.yaml @@ -37,7 +37,7 @@ shortname: "{{ item.hostname }}" private_ip_address: "{{ item.private_ipv4 }}" public_ip_address: "{{ item.public_ipv4 }}" - public_ip6_address: "{{ item.public_ipv6 }}" + public_ip6_address: "{{ item.public_ipv6 | default(omit) }}" groups: "{{ (item.tags | equinix_metal_tags_to_dict).AnsibleGroup }}" bastion: "{{ local_bastion | default('') }}" isolated: >-