{{ ansible_managed | comment }} {% for name, iface in ifupdown2__interfaces.items() %} allow-hotplug {{ name }} iface {{ name }} {% for address in iface.addresses %} address {{ address | ipaddr }} {% endfor %} {% for gateway in iface.gateways %} gateway {{ gateway | ipaddr }} {% endfor %} {% endfor %}