Add static network interface
This commit is contained in:
11
roles/base/templates/static-interface.cfg
Normal file
11
roles/base/templates/static-interface.cfg
Normal file
@@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# The loopback network interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
# The primary network interface
|
||||
auto {{ ip_inter }}
|
||||
iface {{ ip_inter }} inet static
|
||||
address {{ ip_addr }}
|
||||
gateway {{ ip_gateway }}
|
Reference in New Issue
Block a user