Optimized performance by moving multiple similar when includes to own tasks file

This commit is contained in:
2025-08-11 13:15:31 +02:00
parent 6318611931
commit 1ba50397db
41 changed files with 616 additions and 733 deletions

View File

@@ -10,7 +10,7 @@
become: true
- name: Configure systemd lid switch behavior to hibernate on lid close (battery), lock on AC and docked
become: yes
become: true
lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitch='
@@ -20,7 +20,7 @@
become: true
- name: Configure systemd to lock session when lid is closed on external power
become: yes
become: true
lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitchExternalPower='
@@ -30,7 +30,7 @@
become: true
- name: Configure systemd to lock session when lid is closed while docked
become: yes
become: true
lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitchDocked='