mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-hotspot-on|off for all, is_rpi, style
This commit is contained in:
parent
7b1f7016e5
commit
23124b3a19
1 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
- name: Turn off hostapd when no wifi interface present or in "Appliance Mode"
|
||||
set_fact:
|
||||
hostapd_enabled: False
|
||||
when: not iiab_wireless_lan_iface is defined or iiab_network_mode == "Appliance"
|
||||
when: iiab_wireless_lan_iface is undefined or iiab_network_mode == "Appliance"
|
||||
|
||||
- name: Create /etc/hostapd/hostapd.conf from template
|
||||
template:
|
||||
|
@ -37,7 +37,6 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
when: is_raspbian | bool
|
||||
|
||||
- name: Create /usr/bin/iiab-hotspot-off from template
|
||||
template:
|
||||
|
@ -46,7 +45,6 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
when: is_raspbian | bool
|
||||
|
||||
- name: Create dhcpcd hook for hostapd
|
||||
template:
|
||||
|
@ -55,7 +53,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: is_rpi
|
||||
when: is_raspbian
|
||||
|
||||
- name: Disable the Access Point 'hostapd' service
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue