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:
parent
49fac85eca
commit
8eb29a9ede
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue