mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-04 08:04:16 +02:00
9 lines
256 B
YAML
9 lines
256 B
YAML
---
|
|
- name: Set HandleLidSwitch to hibernate in /etc/systemd/logind.conf
|
|
become: yes
|
|
lineinfile:
|
|
path: /etc/systemd/logind.conf
|
|
regexp: '^#?HandleLidSwitch='
|
|
line: 'HandleLidSwitch=hibernate'
|
|
backup: yes
|
|
notify: Restart systemd-logind |