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]
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue