Allow specifying interface mode
This commit is contained in:
parent
ed2fe7106e
commit
7e09ee7d21
|
@ -2,7 +2,7 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
auto {{ network.value['device'] }}
|
auto {{ network.value['device'] }}
|
||||||
iface {{ network.value['device'] }} inet manual
|
iface {{ network.value['device'] }} inet {{ network.value['mode']|default('manual') }}
|
||||||
post-up ip link set $IFACE mtu {{ network.value['mtu'] }}
|
post-up ip link set $IFACE mtu {{ network.value['mtu'] }}
|
||||||
{% if network.value['type'] == 'bond' %}
|
{% if network.value['type'] == 'bond' %}
|
||||||
bond-mode {{ network.value['bond_mode'] }}
|
bond-mode {{ network.value['bond_mode'] }}
|
||||||
|
|
Loading…
Reference in New Issue