Move 'pwroff on idle' task to role

This commit is contained in:
Raphael Dannecker 2025-03-31 14:37:42 +02:00
parent 6ba24ade09
commit 68215897a6
4 changed files with 506 additions and 501 deletions

View file

@ -177,16 +177,6 @@
#action/switch_user=false
#action/lock_screen=false
- name: Shut down when idle for too long
ansible.builtin.copy:
dest: /etc/xdg/powermanagementprofilesrc
mode: '0644'
content: |
[AC][SuspendSession]
idleTime=7200000
suspendType=8
when: "'teacherlaptop' not in group_names"
- name: Start with empty session by default
ansible.builtin.copy:
dest: /etc/xdg/ksmserverrc