--- install: vm: mem: 1024 numcpu: 1 autostart: True disks: primary: /dev/vda virtio: vda: type: zfs name: root size: 10g interfaces: - bridge: br-public name: vio0 network: nameservers: "{{ vm_host.network.dns }}" domain: "{{ host_domain }}" primary: &_network_primary_ name: vio0 address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" gateway: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[vm_host.name]) | ipaddr('address') }}" interfaces: - *_network_primary_