[Match] Name=bgp-backup [Network] {% for host in groups['all'] -%} {%- if host != inventory_hostname -%} Address={{ hostvars[host]['bgp_ipv6'] }}/128 {% endif -%} {% endfor %}