add bridge management

This commit is contained in:
vincent 2020-11-04 18:25:36 +01:00
parent 6a689a60f9
commit f1e0b5f9bd
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,12 @@
become: yes
notify: bridge_enable
- name: enable bridge
systemd:
name: netctl@bridge.service
enables: true
become: yes
- name: disable dhcpcd
systemd:
name: dhcpcd # required. Name of the service.

View File

@ -2,6 +2,7 @@
Interface=br0
Connection=bridge
BindsToInterfaces=({{ ansible_default_ipv4.interface }})
MACAddress={{ ansible_default_ipv4.interface }}
IP=dhcp
## Ignore (R)STP and immediately activate the bridge
#SkipForwardingDelay=yes