2017-12-28 22:13:22 +00:00
|
|
|
- name: Create /etc/hostapd/hostapd.conf from template
|
2017-12-29 00:08:13 +00:00
|
|
|
template:
|
|
|
|
src: hostapd/hostapd.conf.j2
|
|
|
|
dest: /etc/hostapd/hostapd.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-11-13 05:35:34 +00:00
|
|
|
when: iiab_wireless_lan_iface is defined
|
|
|
|
|
2017-12-28 22:13:22 +00:00
|
|
|
- name: Create /etc/hostapd/hostapd.conf.iiab from template
|
2017-12-29 00:08:13 +00:00
|
|
|
template:
|
|
|
|
src: hostapd/iiab-hostapd.conf.j2
|
|
|
|
dest: /etc/hostapd/hostapd.conf.iiab
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-11-05 18:22:37 +00:00
|
|
|
when: discovered_wireless_iface is defined
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-18 22:20:30 +00:00
|
|
|
- name: Disable the Access Point 'hostapd' service
|
2017-12-29 00:08:13 +00:00
|
|
|
service:
|
|
|
|
enabled: no
|
|
|
|
name: hostapd.service
|
2017-11-18 22:20:30 +00:00
|
|
|
when: not hostapd_enabled
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-08 06:53:19 +00:00
|
|
|
- name: Use custom systemd unit file to start 'hostapd' service
|
2017-12-29 00:08:13 +00:00
|
|
|
template:
|
|
|
|
src: hostapd/hostapd.service.j2
|
|
|
|
dest: /etc/systemd/system/hostapd.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-12-28 22:13:22 +00:00
|
|
|
- name: Create /usr/bin/iiab-hotspot-on from template
|
2017-12-29 00:08:13 +00:00
|
|
|
template:
|
|
|
|
src: network/iiab-hotspot-on
|
|
|
|
dest: /usr/bin/iiab-hotspot-on
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
2017-11-19 00:48:13 +00:00
|
|
|
|
2017-12-28 22:13:22 +00:00
|
|
|
- name: Create /usr/bin/iiab-hotspot-off from template
|
2017-12-29 00:08:13 +00:00
|
|
|
template:
|
|
|
|
src: network/iiab-hotspot-off
|
|
|
|
dest: /usr/bin/iiab-hotspot-off
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
2017-11-19 00:48:13 +00:00
|
|
|
|
2018-04-07 16:50:13 +00:00
|
|
|
- name: Ansible is having a problem enabling hostapd service
|
|
|
|
shell: systemctl enable hostapd
|
2018-01-01 15:50:47 +00:00
|
|
|
when: hostapd_enabled and iiab_wireless_lan_iface is defined and iiab_network_mode != "Appliance"
|