1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Move iiab-hotspot-on|off installs (hostapd.yml to main.yml, for Admin Console)

This commit is contained in:
root 2022-07-11 17:12:29 +00:00
parent 91046a4f12
commit 699e908291
2 changed files with 18 additions and 15 deletions

View file

@ -50,21 +50,8 @@
mode: 0644 mode: 0644
when: not wifi_up_down and can_be_ap when: not wifi_up_down and can_be_ap
- name: Create /usr/bin/iiab-hotspot-on from template # 2022-07-11: Install of iiab-hotspot-on|off moved to network/tasks/main.yml
template: # as required for Admin Console
src: hostapd/iiab-hotspot-on
dest: /usr/bin/iiab-hotspot-on
owner: root
group: root
mode: 0755
- name: Create /usr/bin/iiab-hotspot-off from template
template:
src: hostapd/iiab-hotspot-off
dest: /usr/bin/iiab-hotspot-off
owner: root
group: root
mode: 0755
- name: Create dhcpcd hook for hostapd and ap0 when wifi_up_down True - name: Create dhcpcd hook for hostapd and ap0 when wifi_up_down True
template: template:

View file

@ -25,6 +25,22 @@
include_tasks: install.yml include_tasks: install.yml
when: network_install and network_installed is undefined when: network_install and network_installed is undefined
- name: Create /usr/bin/iiab-hotspot-on from template
template:
src: hostapd/iiab-hotspot-on
dest: /usr/bin/iiab-hotspot-on
owner: root
group: root
mode: 0755
- name: Create /usr/bin/iiab-hotspot-off from template
template:
src: hostapd/iiab-hotspot-off
dest: /usr/bin/iiab-hotspot-off
owner: root
group: root
mode: 0755
- name: Configuring Network if enabled - name: Configuring Network if enabled
block: block:
# - name: Configure wondershaper # - name: Configure wondershaper