1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3323 from holta/can_be_ap-patch

network/tasks/detected_network.yml: can_be_ap grep failed on absence of regex
This commit is contained in:
A Holt 2022-07-28 10:23:35 -04:00 committed by GitHub
commit 2efd7c0198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: