diff --git a/tasks/main.yml b/tasks/main.yml index 9181c0b..32e376b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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. diff --git a/templates/bridge.j2 b/templates/bridge.j2 index 7368be6..4d1873a 100644 --- a/templates/bridge.j2 +++ b/templates/bridge.j2 @@ -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