diff options
Diffstat (limited to 'ansible/x220.yml')
-rw-r--r-- | ansible/x220.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/x220.yml b/ansible/x220.yml index 7899f59..7bcd10b 100644 --- a/ansible/x220.yml +++ b/ansible/x220.yml @@ -7,6 +7,19 @@ - role: unix_users - role: thinkpad - role: puomi + + tasks: + - lineinfile: + path: /etc/systemd/logind.conf + regexp: HandleLidSwitch= + line: HandleLidSwitch=ignore + - lineinfile: + path: /etc/systemd/logind.conf + regexp: HandleLidSwitchExternalPower= + line: HandleLidSwitchExternalPower=ignore + - systemd: + name: systemd-logind + state: restarted vars: ansible_python_interpreter: /usr/bin/python3 |