mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Optimized performance by moving multiple similar when includes to own tasks file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Restart systemd-logind
|
||||
become: yes
|
||||
become: true
|
||||
systemd:
|
||||
name: systemd-logind
|
||||
state: restarted
|
@@ -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='
|
||||
|
Reference in New Issue
Block a user