From 8751b33271fb56bc1817424b992dec5ad9e62b55 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Thu, 30 Apr 2020 10:32:09 -0500 Subject: [PATCH] can't start hostapd when ap0 is in use needs reboot --- roles/network/tasks/restart.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/network/tasks/restart.yml b/roles/network/tasks/restart.yml index 0634bdc63..6cecec5c4 100644 --- a/roles/network/tasks/restart.yml +++ b/roles/network/tasks/restart.yml @@ -2,7 +2,8 @@ systemd: name: hostapd state: restarted - when: iiab_wireless_lan_iface is defined and hostapd_enabled and discovered_wireless_iface != iiab_wan_iface +# when: iiab_wireless_lan_iface is defined and hostapd_enabled and discovered_wireless_iface != iiab_wan_iface + when: hostapd_enabled and iiab_wireless_lan_iface is defined and discovered_wireless_iface == iiab_wireless_lan_iface - name: Start named service systemd: @@ -79,6 +80,6 @@ systemd: name: "{{ dhcp_service2 }}" state: restarted - when: not no_net_restart + when: not no_net_restart and discovered_wireless_iface == "none" #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