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

@ -1,5 +1,6 @@
---
misc_avoid_suspend: true
misc_pwroff: true
misc_pwroff_idle: true
misc_pxe_first: false
misc_reporter: false

View file

@ -67,6 +67,18 @@
enabled: true
when: misc_pwroff
# Shut down when idle for too long
- 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: misc_pwroff_idle
# Boot splash
- name: Enable boot splash screen