mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-19 08:46:03 +02:00
Implemented autostart of caffeine with the help of chat gpt: https://chat.openai.com/share/fa846dac-6068-4386-b3e7-b75f1248ec82
This commit is contained in:
10
roles/pc_application_caffeine/handlers/main.yml
Normal file
10
roles/pc_application_caffeine/handlers/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# handlers file for caffeine_auto_start
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: enable and start caffeine
|
||||
systemd:
|
||||
name: caffeine.service
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
Reference in New Issue
Block a user