mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2025-07-20 14:53:08 +00:00
add network
This commit is contained in:
17
templates/ifcfg-loopback.j2
Normal file
17
templates/ifcfg-loopback.j2
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
Reference in New Issue
Block a user