mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
de4be7c646
use hostapd.yml supplied templates sooner - remove systemd reload and restarted - move restarted to restart.yml live testing
24 lines
861 B
YAML
24 lines
861 B
YAML
- name: Create a config file for hostapd
|
|
template: src=hostapd/hostapd.conf.j2
|
|
dest=/etc/hostapd/hostapd.conf
|
|
owner=root
|
|
group=root
|
|
mode=0644
|
|
when: iiab_wireless_lan_iface != "none"
|
|
|
|
- name: Disable the Access Point Hostapd program
|
|
service: enabled=no
|
|
name=hostapd.service
|
|
when: iiab_wireless_lan_iface == "none" or iiab_network_mode == "Appliance" or not hostapd_enabled
|
|
|
|
- name: Use custom systemd unit file to start hostapd
|
|
template: src=hostapd/hostapd.service.j2
|
|
dest=/etc/systemd/system/hostapd.service
|
|
owner=root
|
|
group=root
|
|
mode=0644
|
|
|
|
- name: Enable the Access Point Hostapd program
|
|
service: enabled=yes
|
|
name=hostapd.service
|
|
when: iiab_wireless_lan_iface != "none" and iiab_network_mode != "Appliance" and hostapd_enabled
|