| <name>xos-{{ item.name }}</name> |
| <bridge name="{{ item.name }}"/> |
| <domain name="{{ site_suffix }}" localonly="no"/> |
| {% if unbound_listen_on_default %} |
| {% for host in groups['head'] %} |
| <forwarder addr="{{ hostvars[host].ansible_default_ipv4.address }}"/> |
| {% if dns_servers is defined %} |
| {% for ns in dns_servers %} |
| <forwarder addr="{{ ns }}"/> |
| <ip address="{{ item.ipv4_prefix }}.1" netmask="255.255.255.0"> |
| <range start="{{ item.ipv4_prefix }}.2" end="{{ item.ipv4_prefix }}.254"/> |
| {% for vm in head_vm_list %} |
| <host name='{{ vm.name }}' ip='{{ item.ipv4_prefix }}.{{ vm.ipv4_last_octet }}'/> |