mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update rpi_debian.yml
This commit is contained in:
parent
eaf81d0d6b
commit
15df488fce
1 changed files with 4 additions and 4 deletions
|
@ -20,19 +20,19 @@
|
|||
dest: /etc/dhcpcd.conf
|
||||
src: network/dhcpcd.conf.j2
|
||||
|
||||
- name: New raspbian requires country code -- check for it
|
||||
- name: New Raspbian requires country code -- check for it
|
||||
shell: grep country /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
register: country_code
|
||||
ignore_errors: True
|
||||
|
||||
- name: Put a country code if it does not exist
|
||||
- name: Put country code ({{ host_country_code }}) in /etc/wpa_supplicant/wpa_supplicant.conf if nec
|
||||
lineinfile:
|
||||
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
path: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
regexp: "^country.*"
|
||||
line: country={{ host_country_code }}
|
||||
when: country_code is defined and country_code.stdout == ""
|
||||
|
||||
- name: Enable the wifi with rfkill
|
||||
- name: Enable the WiFi with rfkill
|
||||
shell: rfkill unblock 0
|
||||
ignore_errors: True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue