ansible-on-prem/roles/server/network/templates/default-interface.network.j2

9 lines
260 B
Django/Jinja

[Match]
Name={{ default_interface.ifname }}
[Network]
Address={{ hostvars[inventory_hostname]['addresses'][default_interface.name] }}/22
Gateway={{ default_interface.gateway }}
DNS={{ default_interface.gateway }}
Domains={{ default_interface.search_domain }}