reformat yaml

This commit is contained in:
Pig Monkey 2022-11-25 18:13:48 -08:00
parent 2919b200f8
commit 69d317788c
2 changed files with 24 additions and 10 deletions

View file

@ -9,7 +9,9 @@
state: present
- name: Install py3status
pacman: name=py3status state=present
pacman:
name: py3status
state: present
- name: Verify that default applications file exists
copy:
@ -18,9 +20,10 @@
force: false
- name: Verify header in default applications file
lineinfile: dest=/etc/xdg/mimeapps.list
state=present
line='[Default Applications]'
insertbefore=BOF
lineinfile:
dest: /etc/xdg/mimeapps.list
state: present
line: '[Default Applications]'
insertbefore: BOF
- include_tasks: rofi.yml

View file

@ -1,17 +1,28 @@
---
- name: Install xautolock
pacman: name=xautolock state=present
pacman:
name: xautolock
state: present
- name: Install i3lock
pacman: name=i3lock state=present
pacman:
name: i3lock
state: present
- name: Push lock script
copy: src=lock.sh dest=/usr/local/bin/lock mode=0755
copy:
src: lock.sh
dest: /usr/local/bin/lock
mode: 0755
- name: Push screen lock service file
copy: src=screenlock.service dest=/etc/systemd/system/screenlock@.service
copy:
src: screenlock.service
dest: /etc/systemd/system/screenlock@.service
notify:
- reload systemd config
- name: Enable screen lock service
service: name="screenlock@{{ user.name }}.service" enabled=yes
service:
name: screenlock@{{ user.name }}.service"
enabled: yes