This repository has been archived on 2020-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-laptop/roles/gui/tasks/lock.yml

29 lines
517 B
YAML
Raw Normal View History

2018-10-12 22:44:28 +02:00
---
- name: install i3lock
apt:
name: "i3lock"
state: present
- name: install lock script
copy:
src: lock
dest: /usr/local/bin/lock
mode: 0755
- name: copy lock systemd service
copy:
src: lock.service
dest: /lib/systemd/system/lock.service
- name: enable lock systemd service
service:
name: lock
enabled: true
- name: susped at lid close when docked
ini_file:
path: /etc/systemd/logind.conf
section: Login
option: HandleLidSwitchDocked
value: suspend