1
0
Fork 0
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:
A Holt 2018-10-09 17:21:25 -04:00 committed by GitHub
parent eaf81d0d6b
commit 15df488fce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,19 +20,19 @@
dest: /etc/dhcpcd.conf dest: /etc/dhcpcd.conf
src: network/dhcpcd.conf.j2 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 shell: grep country /etc/wpa_supplicant/wpa_supplicant.conf
register: country_code register: country_code
ignore_errors: True 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: lineinfile:
dest: /etc/wpa_supplicant/wpa_supplicant.conf path: /etc/wpa_supplicant/wpa_supplicant.conf
regexp: "^country.*" regexp: "^country.*"
line: country={{ host_country_code }} line: country={{ host_country_code }}
when: country_code is defined and country_code.stdout == "" 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 shell: rfkill unblock 0
ignore_errors: True ignore_errors: True