diff --git a/roles/network/tasks/hostapd.yml b/roles/network/tasks/hostapd.yml index 33b9d8727..199e0a883 100644 --- a/roles/network/tasks/hostapd.yml +++ b/roles/network/tasks/hostapd.yml @@ -6,19 +6,19 @@ mode=0644 when: discovered_wireless_iface is defined -- name: Disable the Access Point Hostapd program +- 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: Use custom systemd unit file to start hostapd +- name: Use custom systemd unit file to start 'hostapd' service 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 +- name: Enable the Access Point 'hostapd' service service: enabled=yes name=hostapd.service when: iiab_wireless_lan_iface is defined and iiab_network_mode != "Appliance" and hostapd_enabled