Iterate over a variable for network management
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# The primary network interface
|
||||
auto {{ ip_inter }}
|
||||
iface {{ ip_inter }} inet static
|
||||
address {{ ip_addr }}
|
||||
gateway {{ ip_gateway }}
|
||||
auto {{ item.name }}
|
||||
iface {{ item.name }} inet static
|
||||
address {{ item.address }}
|
||||
gateway {{ item.gateway }}
|
||||
|
Reference in New Issue
Block a user