Skip to content

Commit

Permalink
Omit ipv6 when not present (#4303)
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim authored Dec 10, 2021
1 parent 23060ea commit 9d0e23f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down

0 comments on commit 9d0e23f

Please sign in to comment.