Allow specifying interface mode

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:30 -04:00
parent ed2fe7106e
commit 7e09ee7d21
1 changed files with 1 additions and 1 deletions

View File

@ -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'] }}