13 lines
312 B
Text
13 lines
312 B
Text
|
{{ 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 %}
|