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

rpi_debian.yml: Fix both "country_code is defined" -> "country_code.stdout is defined"

This commit is contained in:
A Holt 2023-04-26 18:57:05 -04:00 committed by GitHub
parent 49fac85eca
commit 8eb29a9ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,14 +44,14 @@
- name: Set country code for hostapd to value found in /etc/wpa_supplicant/wpa_supplicant.conf
set_fact:
host_country_code: "{{ country_code.stdout }}"
when: country_code is defined and country_code.stdout | length > 0
when: country_code.stdout is defined and country_code.stdout | length > 0
- name: Put country code ({{ host_country_code }}) in /etc/wpa_supplicant/wpa_supplicant.conf if nec
lineinfile:
path: /etc/wpa_supplicant/wpa_supplicant.conf
regexp: "^country.*"
line: country={{ host_country_code }}
when: country_code is defined and country_code.stdout | length == 0
when: country_code.stdout is defined and country_code.stdout | length == 0
# This should go away, should only be unblocked by raspi-config
- name: Enable the WiFi with rfkill