summaryrefslogtreecommitdiff
path: root/roles/common/templates/interfaces.j2
blob: a9bb0929f3c57575c67521c0f565219399444f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
{% set iface = net_interface
   | default(ansible_facts.get('default_ipv4', {}).get('interface'))
   | default('eth0') %}
auto lo
iface lo inet loopback

auto {{ iface }}
iface {{ iface }} inet static
	address {{ net_address_prefix }}{{ net_address_suffix }}
	netmask {{ net_netmask }}
	gateway {{ net_gateway }}