From 0bc294bbba5bc41c9346a955e9d6cbc713f515fa Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 13 Apr 2020 13:43:15 -0500 Subject: [PATCH] Update roles/network/tasks/hostapd.yml Co-Authored-By: A Holt --- roles/network/tasks/hostapd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/network/tasks/hostapd.yml b/roles/network/tasks/hostapd.yml index 4cd3672dc..c09b7e8e9 100644 --- a/roles/network/tasks/hostapd.yml +++ b/roles/network/tasks/hostapd.yml @@ -11,7 +11,7 @@ - name: Setting WiFi channel to {{ current_host_channel.stdout }} on RPi hardware set_fact: host_channel: "{{ current_host_channel.stdout }}" - when: current_host_channel.stdout != "" and current_host_channel.stdout|int <= 13 and discovered_wireless_iface != "none" and rpi_model != "none" + when: current_host_channel.stdout is defined and current_host_channel.stdout != "" and current_host_channel.stdout|int <= 13 and discovered_wireless_iface != "none" and rpi_model != "none" - name: Create /etc/hostapd/hostapd.conf from template template: