ansible/roles/ifupdown2/templates/interfaces.j2

14 lines
327 B
Text
Raw Normal View History

{{ 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 | default([]) %}
gateway {{ gateway | ipaddr }}
{% endfor %}
{% endfor %}