Teacherlaptops don't need pwroff service and suspend function will not be disabled.

This commit is contained in:
Raphael Dannecker 2024-04-29 18:53:22 +02:00
parent 30749ac24b
commit da88db0061
2 changed files with 5 additions and 0 deletions

View file

@ -104,6 +104,7 @@
path: /etc/systemd/sleep.conf.d/
state: directory
mode: '0755'
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: Avoid suspending
blockinfile:
@ -115,6 +116,7 @@
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: Deploy dolphin script
copy: