diff --git a/roles/lmn_wlan_iwd/tasks/main.yml b/roles/lmn_wlan_iwd/tasks/main.yml index 6265067..e3f6c3d 100644 --- a/roles/lmn_wlan_iwd/tasks/main.yml +++ b/roles/lmn_wlan_iwd/tasks/main.yml @@ -53,13 +53,15 @@ [Service] Type=oneshot - ExecStart=/usr/sbin/rfkill enable wifi + ExecStart=/usr/sbin/rfkill unblock wlan [Install] WantedBy=multi-user.target + when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop) - name: Enable the enable-wifi service ansible.builtin.systemd: name: enable-wifi.service enabled: True daemon_reload: True + when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)