diff --git a/roles/network/tasks/debian.yml b/roles/network/tasks/debian.yml index 77b3d2849..89144ab98 100644 --- a/roles/network/tasks/debian.yml +++ b/roles/network/tasks/debian.yml @@ -67,8 +67,14 @@ - name: Restart the networking service service: name=networking state=restarted - when: not nobridge is defined and not no_net_restart + when: not nobridge is defined and not has_NM and not no_net_restart +# NM might have a watcher on this path and we don't have to restart NM +- name: Copy the bridge script for has_NM + template: dest=/etc/network/interfaces + src=network/systemd.j2 + when: has_NM and iiab_lan_iface == "br0" + - name: Restart hostapd when WiFi is present service: name=hostapd state=restarted when: iiab_wireless_lan_iface is defined and hostapd_enabled and iiab_network_mode != "Appliance"