mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
hostapd - disable before enable
Similar workarounds exist in named.yml and dhcpd.yml, just go with the flow
This commit is contained in:
parent
367164029c
commit
ceb4d7d901
2 changed files with 2 additions and 7 deletions
|
@ -1,9 +1,3 @@
|
|||
- name: Disable the Access Point 'hostapd' service
|
||||
service: enabled=no
|
||||
name=hostapd.service
|
||||
when: not iiab_wireless_lan_iface is defined or iiab_network_mode == "Appliance"
|
||||
#or not hostapd_enabled
|
||||
|
||||
- name: Disable dhcpd service
|
||||
service: name=dhcpd
|
||||
enabled=no
|
||||
|
|
|
@ -44,7 +44,8 @@
|
|||
systemd:
|
||||
name: hostapd
|
||||
enabled: no
|
||||
when: not hostapd_enabled
|
||||
# cheap workaround for when /etc/init.d is populated
|
||||
# when: not hostapd_enabled
|
||||
|
||||
- name: Enable the Access Point 'hostapd' service
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue