diff --git a/roles/network/tasks/detected_network.yml b/roles/network/tasks/detected_network.yml index bb21b1b2a4..0da2cb98c6 100644 --- a/roles/network/tasks/detected_network.yml +++ b/roles/network/tasks/detected_network.yml @@ -240,7 +240,7 @@ when: iiab_wireless_lan_iface is defined and nobridge is defined - name: Detect WiFi country code in use - shell: iw reg get | grep country | grep -v UNSET | awk '{print $2}' | sed "s|:|| + shell: iw reg get | grep country | grep -v UNSET | awk '{print $2}' | sed "s|:||" register: REG_DOM ignore_errors: True when: wifi_up_down and can_be_ap and has_wifi_gateway is defined