mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
- 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.
27 lines
631 B
YAML
27 lines
631 B
YAML
- block:
|
||
- name: Include dependencies
|
||
include_role:
|
||
name: '{{ item }}'
|
||
loop:
|
||
- sys-ctl-cln-bkps
|
||
- sys-lock
|
||
- include_tasks: utils/run_once.yml
|
||
when: run_once_svc_bkp_loc_2_usb is not defined
|
||
|
||
- name: Fail if any backup_to_usb variable is empty
|
||
assert:
|
||
that:
|
||
- BACKUP_TO_USB_MOUNT != ""
|
||
- BACKUP_TO_USB_target != ""
|
||
- BACKUP_TO_USB_SOURCE != ""
|
||
fail_msg: |
|
||
One or more of the configuration variables are empty!
|
||
Please set:
|
||
- mount
|
||
- target
|
||
- source
|
||
to non‑empty values in your configuration file.
|
||
|
||
- include_role:
|
||
name: sys-systemctl
|