mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-24 22:36:38 +00:00
18 lines
516 B
Django/Jinja
18 lines
516 B
Django/Jinja
DEVICE=lo
|
|
IPADDR=127.0.0.1
|
|
NETMASK=255.0.0.0
|
|
NETWORK=127.0.0.0
|
|
# If you're having problems with gated making 127.0.0.0/8 a martian,
|
|
# you can change this to something else (255.255.255.255, for example)
|
|
BROADCAST=127.255.255.255
|
|
{% for network in item.ip %}
|
|
IPADDR{{ loop.index }}={{ network.ipaddr }}
|
|
{% if network.netmask is defined %}
|
|
NETMASK{{ loop.index }}={{ network.netmask }}
|
|
{% elif network.prefix is defined %}
|
|
PREFIX{{ loop.index }}={{ network.prefix }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
ONBOOT=yes
|
|
NAME=loopback
|