1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

network/tasks/detected_network.yml: can_be_ap grep failed on absence of regex

This commit is contained in:
A Holt 2022-07-28 14:18:49 +00:00 committed by root
parent 004b89015d
commit 9ad5a9caa1

View file

@ -113,6 +113,7 @@
shell: iw list | grep '^[[:space:]]*\* AP$'
register: look_for_ap
when: discovered_wireless_iface != "none"
failed_when: False # Hides red errors (stronger than 'ignore_errors: yes') -- otherwise Ansible will fail if grep returns '1' on absence of regex!
- name: Set can_be_ap if 'iw list' output contains suitable '* AP'
set_fact: