From fa8ac3606d74bd05eab06c50b698307cf2a09beb Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 25 Feb 2019 11:56:57 -0500 Subject: [PATCH 1/2] @jvonau: suppress restarting of dnsmasq if initial install is using WiFi --- roles/network/tasks/restart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/network/tasks/restart.yml b/roles/network/tasks/restart.yml index ddcf111a4..72339b680 100644 --- a/roles/network/tasks/restart.yml +++ b/roles/network/tasks/restart.yml @@ -74,4 +74,4 @@ systemd: name: "{{ dhcp_service2 }}" state: restarted - when: iiab_network_mode != "Appliance" and iiab_wan_iface != discovered_wireless_iface + when: (iiab_network_mode != "Appliance") and (iiab_wan_iface != discovered_wireless_iface) and (not no_net_restart) From 3ec408fbd1626cd9147e39e3e37c6cf028d2f248 Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 25 Feb 2019 12:00:46 -0500 Subject: [PATCH 2/2] cleaner, on @jvonau's recommendation --- roles/network/tasks/restart.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/network/tasks/restart.yml b/roles/network/tasks/restart.yml index 72339b680..64dc0ba24 100644 --- a/roles/network/tasks/restart.yml +++ b/roles/network/tasks/restart.yml @@ -74,4 +74,5 @@ systemd: name: "{{ dhcp_service2 }}" state: restarted - when: (iiab_network_mode != "Appliance") and (iiab_wan_iface != discovered_wireless_iface) and (not no_net_restart) + when: (iiab_network_mode != "Appliance") and (not no_net_restart) + #when: iiab_network_mode != "Appliance" and iiab_wan_iface != discovered_wireless_iface