Skip to content

Commit

Permalink
just let cmdsrv handle starting hostapd
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed Jan 10, 2025
1 parent 113da27 commit ff70eab
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions roles/network/tasks/hostapd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
# 2022-07-11: Install of iiab-hotspot-on|off moved to network/tasks/main.yml
# as required for Admin Console

- name: Enable the Access Point 'hostapd' service
systemd:
name: hostapd
enabled: yes
when: hostapd_enabled and not wifi_up_down
#- name: Enable the Access Point 'hostapd' service
# systemd:
# name: hostapd
# enabled: yes
# when: hostapd_enabled and not wifi_up_down

- name: Disable ap0 related services
systemd:
Expand All @@ -71,13 +71,12 @@
- iiab-wifi-test.service
when: not wifi_up_down

- name: Enable the Access Point 'hostapd' and ap0 related services
- name: Enable ap0 related services
systemd:
name: "{{ item }}"
enabled: yes
daemon_reload: yes
with_items:
- hostapd.service
- iiab-clone-wifi.service
- iiab-wifi-test.service
when: hostapd_enabled and wifi_up_down
Expand Down

0 comments on commit ff70eab

Please sign in to comment.