Fix enabling wifi on boot for school laptops.

This commit is contained in:
Andreas B. Mundt 2024-07-02 13:24:03 +02:00
parent 48a3aa831d
commit d787ec9aba

View file

@ -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)