computer-playbook/roles/pc-caffeine/tasks/main.yml

17 lines
366 B
YAML

---
- name: Install caffeine
kewlfft.aur.aur:
use: yay
name:
- caffeine-ng
- name: Create autostart directory if it doesn't exist
file:
path: "{{auto_start_directory}}"
state: directory
- name: Copy caffeine.desktop file to autostart directory
template:
src: caffeine.desktop.j2
dest: "{{auto_start_directory}}caffeine.desktop"