From 3510641b4127e8db6f09f9476fc82234dcab37cb Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Wed, 22 Nov 2017 10:34:42 -0600 Subject: [PATCH] has_NM use /etc/network/interfaces, need to toggle "manged" in NetworkManager.conf Alternative keyfile option is possible just like the XO days. http://manpages.ubuntu.com/manpages/zesty/man5/NetworkManager.conf.5.html --- roles/network/tasks/debian.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"