1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

suppose iiab-wifi should be absent when not wifi_up_down

This commit is contained in:
George Hunt 2020-04-12 17:53:26 +01:00 committed by Jerry Vonau
parent 97fa35c9d2
commit 75162642ad

View file

@ -114,7 +114,16 @@
with_items: with_items:
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/carrier.d/iiab-wifi' } - { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/carrier.d/iiab-wifi' }
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/no-carrier.d/iiab-wifi' } - { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/no-carrier.d/iiab-wifi' }
when: systemd_networkd_active and discovered_wireless_iface != "none" and rpi_model != "none" when: systemd_networkd_active and discovered_wireless_iface != "none" and rpi_model != "none" and wifi_up_down
- name: Remove networkd-dispatcher hook for hostapd on RPi hardware and not up/down
file:
path: "{{ item.dest}}
status: absent
with_items:
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/carrier.d/iiab-wifi' }
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/no-carrier.d/iiab-wifi' }
when: systemd_networkd_active and discovered_wireless_iface != "none" and rpi_model != "none" and not wifi_up_down
- name: Disable the Access Point 'hostapd' service - name: Disable the Access Point 'hostapd' service
systemd: systemd: