From b1f6c8176e98fcf32d631c349e0d8b24fd39f9c2 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sun, 3 May 2020 19:18:20 -0500 Subject: [PATCH] for the most part restart dnsmasq --- roles/network/tasks/restart.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/network/tasks/restart.yml b/roles/network/tasks/restart.yml index f75b27dae..6aa34c733 100644 --- a/roles/network/tasks/restart.yml +++ b/roles/network/tasks/restart.yml @@ -81,10 +81,13 @@ state: restarted when: hostapd_enabled and wifi_slave.stdout is defined and wifi_slave.stdout == 0 +#both interfaces.d and systemd-networkd should have br0 available and Appliance lacks br0 - name: User choice of dnsmasq or dhcpd - restarting {{ dhcp_service2 }} systemd: name: "{{ dhcp_service2 }}" state: restarted - when: not no_net_restart and discovered_wireless_iface == "none" + when: (not no_net_restart and not wifi_up_down) or wifi_up_down #when: (iiab_network_mode != "Appliance") # Sufficient b/c br0 exists thanks to /etc/network/interfaces.d/iiab #when: iiab_network_mode != "Appliance" and iiab_wan_iface != discovered_wireless_iface +#keep an eye on legacy wifi installs where br0 is present but not 'online' with an ip address +#due to hostapd didn't go to a carrier state. All others should get dnsmasq restarted