Optimized udev rules for backup to usb with the help of chat gpt https://chat.openai.com/share/a75ca771-d8a4-4b75-9912-c515ba371ae4

This commit is contained in:
2023-05-27 23:04:22 +02:00
parent 3341fc56ac
commit b8a23f95db
23 changed files with 86 additions and 85 deletions

View File

@@ -0,0 +1,2 @@
# Defaults for caffeine_auto_start role
caffeine_executable_path: "/usr/bin/caffeine"

View 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

View File

@@ -0,0 +1,2 @@
dependencies:
- pc_system-aur-helper

View File

@@ -0,0 +1,13 @@
- name: install caffeine
kewlfft.aur.aur:
use: yay
name:
- caffeine-ng
- name: Copy caffeine systemd service file
template:
src: caffeine.service.j2
dest: /etc/systemd/system/caffeine.service
notify:
- reload systemd
- enable and start caffeine

View File

@@ -0,0 +1,8 @@
[Unit]
Description=Caffeine auto start
[Service]
ExecStart={{ caffeine_executable_path }}
[Install]
WantedBy=multi-user.target