Move 'pwroff on idle' task to role
This commit is contained in:
parent
6ba24ade09
commit
68215897a6
4 changed files with 506 additions and 501 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue