1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

exclude ap0 from count_wifi_interfaces

This commit is contained in:
Jerry Vonau 2020-04-03 03:53:46 -05:00
parent bf5dc8cf15
commit 39cf3b2947

View file

@ -81,7 +81,7 @@
#item|trim != discovered_wan_iface
- name: Count WiFi ifaces
shell: "ls -la /sys/class/net/*/phy80211 | awk -F / '{print $5}' | wc -l"
shell: "ls -la /sys/class/net/*/phy80211 | awk -F / '{print $5}' | grep -v -e ap0 | wc -l"
register: count_wifi_interfaces
# facts are apparently all stored as text, so do text comparisons from here on