Configure /etc/network/interfaces and /etc/resolv.conf using Ansible #98
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ iface {{ name }}
|
||||||
{% for address in iface.addresses %}
|
{% for address in iface.addresses %}
|
||||||
address {{ address | ipaddr }}
|
address {{ address | ipaddr }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for gateway in iface.gateways %}
|
{% for gateway in iface.gateways | default([]) %}
|
||||||
gateway {{ gateway | ipaddr }}
|
gateway {{ gateway | ipaddr }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue