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:
parent
004b89015d
commit
9ad5a9caa1
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue