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

@ -139,6 +139,7 @@
- pwroff.timer
- reporter.service
- reporter.timer
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: Enable pwroff.timer
systemd:
@ -147,6 +148,7 @@
loop:
- pwroff.timer
- reporter.timer
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: PXE first boot order
command: /usr/local/sbin/bootorder.sh
@ -196,6 +198,7 @@
[AC][SuspendSession][$i]
idleTime=7200000
suspendType=8
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: Start with empty session by default
ansible.builtin.copy: