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:
parent
97fa35c9d2
commit
75162642ad
1 changed files with 10 additions and 1 deletions
|
@ -114,7 +114,16 @@
|
|||
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"
|
||||
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
|
||||
systemd:
|
||||
|
|
Loading…
Reference in a new issue