add bridge management
This commit is contained in:
parent
6a689a60f9
commit
f1e0b5f9bd
@ -43,6 +43,12 @@
|
|||||||
become: yes
|
become: yes
|
||||||
notify: bridge_enable
|
notify: bridge_enable
|
||||||
|
|
||||||
|
- name: enable bridge
|
||||||
|
systemd:
|
||||||
|
name: netctl@bridge.service
|
||||||
|
enables: true
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: disable dhcpcd
|
- name: disable dhcpcd
|
||||||
systemd:
|
systemd:
|
||||||
name: dhcpcd # required. Name of the service.
|
name: dhcpcd # required. Name of the service.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
Interface=br0
|
Interface=br0
|
||||||
Connection=bridge
|
Connection=bridge
|
||||||
BindsToInterfaces=({{ ansible_default_ipv4.interface }})
|
BindsToInterfaces=({{ ansible_default_ipv4.interface }})
|
||||||
|
MACAddress={{ ansible_default_ipv4.interface }}
|
||||||
IP=dhcp
|
IP=dhcp
|
||||||
## Ignore (R)STP and immediately activate the bridge
|
## Ignore (R)STP and immediately activate the bridge
|
||||||
#SkipForwardingDelay=yes
|
#SkipForwardingDelay=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user