mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-20 07:53:06 +01:00
ensure bond and interfaces only added once
This commit is contained in:
@@ -35,6 +35,7 @@ bond0_interface:
|
|||||||
connection.autoconnect yes
|
connection.autoconnect yes
|
||||||
nmcli con mod bond0 ethernet.mtu 9000
|
nmcli con mod bond0 ethernet.mtu 9000
|
||||||
nmcli con up bond0
|
nmcli con up bond0
|
||||||
|
- unless: nmcli con show bond0
|
||||||
{% if non_enp1s0_interfaces|length > 0 %}
|
{% if non_enp1s0_interfaces|length > 0 %}
|
||||||
- require_in:
|
- require_in:
|
||||||
{% for iface in non_enp1s0_interfaces %}
|
{% for iface in non_enp1s0_interfaces %}
|
||||||
@@ -55,7 +56,7 @@ bond0_interface:
|
|||||||
slave-type bond \
|
slave-type bond \
|
||||||
ethernet.mtu 9000
|
ethernet.mtu 9000
|
||||||
nmcli con up bond0-slave-{{ iface }}
|
nmcli con up bond0-slave-{{ iface }}
|
||||||
|
- unless: nmcli con show bond0-slave-{{ iface }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user