Configure /etc/network/interfaces and /etc/resolv.conf using Ansible #98

Merged
jeltz merged 7 commits from ifupdown2 into master 2022-08-27 04:55:31 +02:00
Showing only changes of commit 5ae7126ce2 - Show all commits

View file

@ -6,7 +6,8 @@ iface {{ name }}
{% for address in iface.addresses %}
address {{ address | ipaddr }}
{% endfor %}
{% for gateway in iface.gateways %}
{% for gateway in iface.gateways | default([]) %}
gateway {{ gateway | ipaddr }}
{% endfor %}
{% endfor %}