Fix enabling wifi on boot for school laptops.
This commit is contained in:
parent
48a3aa831d
commit
d787ec9aba
1 changed files with 3 additions and 1 deletions
|
@ -53,13 +53,15 @@
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/sbin/rfkill enable wifi
|
ExecStart=/usr/sbin/rfkill unblock wlan
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||||
|
|
||||||
- name: Enable the enable-wifi service
|
- name: Enable the enable-wifi service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: enable-wifi.service
|
name: enable-wifi.service
|
||||||
enabled: True
|
enabled: True
|
||||||
daemon_reload: True
|
daemon_reload: True
|
||||||
|
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||||
|
|
Loading…
Add table
Reference in a new issue