1 2 3 4 5 6 7 8 9
network: version: 2 ethernets: {% for iface in ifaces_list %} {{ iface['name'] }}: dhcp4: true match: macaddress: "{{ iface['mac'] }}" {% endfor %}