mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Refactor systemctl services and timers
- Unified service templates into generic systemctl templates - Introduced reusable filter plugins for script path handling - Updated path variables and service/timer definitions - Migrated roles (backup, cleanup, repair, etc.) to use systemctl role - Added sys-daemon role for core systemd cleanup - Simplified timer handling via sys-timer role Note: This is a large refactor and some errors may still exist. Further testing and adjustments will be needed.
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
- dev-python-pip
|
||||
- sys-ctl-alm-compose
|
||||
- sys-lock
|
||||
- sys-rst-daemon
|
||||
|
||||
- name: install lsof and python-psutil
|
||||
community.general.pacman:
|
||||
@@ -14,19 +13,5 @@
|
||||
- python-psutil
|
||||
state: present
|
||||
|
||||
- name: "create {{cleanup_backups_directory}}"
|
||||
file:
|
||||
path: "{{cleanup_backups_directory}}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: create sys-ctl-cln-backups.py
|
||||
copy:
|
||||
src: "sys-ctl-cln-backups.py"
|
||||
dest: "{{cleanup_backups_directory}}sys-ctl-cln-backups.py"
|
||||
|
||||
- name: create sys-ctl-cln-backups{{ SYS_SERVICE_SUFFIX }}
|
||||
template:
|
||||
src: "sys-ctl-cln-backups.service.j2"
|
||||
dest: "/etc/systemd/system/sys-ctl-cln-backups{{ SYS_SERVICE_SUFFIX }}"
|
||||
notify: reload sys-ctl-cln-backups service
|
||||
- include_role:
|
||||
name: sys-systemctl
|
Reference in New Issue
Block a user