mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
typo, and use rfkill to unblock wifi
This commit is contained in:
parent
227b5f4c32
commit
54066b9b07
1 changed files with 8 additions and 3 deletions
|
@ -23,13 +23,18 @@
|
||||||
- name: New raspbian requires counry code -- check for it
|
- name: New raspbian requires counry 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
|
||||||
|
|
||||||
- name: Put a country code if it does not exist
|
- name: Put a country code if it does not exist
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||||
regexp: "^country.*"
|
regexp: "^country.*"
|
||||||
line: country={{ host_country_code }}
|
line: country={{ host_country_code }}
|
||||||
when: country_code.stdout == ""
|
when: country_code is defined and country_code.stdout == ""
|
||||||
|
|
||||||
|
- name: Enable the wifi with rfkill
|
||||||
|
shell: rfkill unblock 0
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Copy the bridge script for RPi
|
- name: Copy the bridge script for RPi
|
||||||
template:
|
template:
|
||||||
|
@ -60,11 +65,11 @@
|
||||||
service:
|
service:
|
||||||
name: hostapd
|
name: hostapd
|
||||||
state: restarted
|
state: restarted
|
||||||
when: hostapd_enabled and iiab_wan_iface != discoveed_wireless_iface and iiab_network_mode != "Appliance"
|
when: hostapd_enabled and iiab_wan_iface != discovered_wireless_iface and iiab_network_mode != "Appliance"
|
||||||
|
|
||||||
- name: Ansible is having a problem enabling services
|
- name: Ansible is having a problem enabling services
|
||||||
shell: systemctl enable hostapd
|
shell: systemctl enable hostapd
|
||||||
when: hostapd_enabled and iiab_wan_iface != discoveed_wireless_iface and iiab_network_mode != "Appliance"
|
when: hostapd_enabled and iiab_wan_iface != discovered_wireless_iface and iiab_network_mode != "Appliance"
|
||||||
|
|
||||||
#- name: dhcp_server may be affected - starting - user choice
|
#- name: dhcp_server may be affected - starting - user choice
|
||||||
# service: name={{ dhcp_service2 }} state=started
|
# service: name={{ dhcp_service2 }} state=started
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue