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 %}
|
||||
address {{ address | ipaddr }}
|
||||
{% endfor %}
|
||||
{% for gateway in iface.gateways %}
|
||||
{% for gateway in iface.gateways | default([]) %}
|
||||
gateway {{ gateway | ipaddr }}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue