--- - name: Basic Setup hosts: ch-gnocchi roles: - role: apt-repo/base - role: core/base - role: core/sshd - role: core/zsh - role: core/cpu-microcode - role: vm/host - role: installer/debian/base - role: installer/openbsd/base post_tasks: # you need to reboot for changes to take effect - name: install network interface config copy: dest: /etc/network/interfaces content: | # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback {% for interface in (__vmhost_bridge_interface_zones__.keys() | sort) %} auto {{ interface }} iface {{ interface }} inet manual {% for zone in __vmhost_bridge_interface_zones__[interface] %} auto {{ interface }}.{{ network_zones[zone].vlan }} iface {{ interface }}.{{ network_zones[zone].vlan }} inet manual {% endfor %} {% endfor %} source /etc/network/interfaces.d/*