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.
31 lines
737 B
YAML
31 lines
737 B
YAML
- block:
|
|
- name: Include dependencies
|
|
include_role:
|
|
name: '{{ item }}'
|
|
loop:
|
|
- dev-git
|
|
- sys-ctl-alm-compose
|
|
- sys-lock
|
|
- sys-timer-cln-bkps
|
|
- include_tasks: utils/run_once.yml
|
|
when: run_once_svc_bkp_rmt_2_loc is not defined
|
|
|
|
- name: "create {{ DOCKER_BACKUP_REMOTE_2_LOCAL_DIR }}"
|
|
file:
|
|
path: "{{ DOCKER_BACKUP_REMOTE_2_LOCAL_DIR }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: create svc-bkp-rmt-2-loc.sh
|
|
copy:
|
|
src: svc-bkp-rmt-2-loc.sh
|
|
dest: "{{ DOCKER_BACKUP_REMOTE_2_LOCAL_DIR }}svc-bkp-rmt-2-loc.sh"
|
|
mode: "0755"
|
|
|
|
- include_role:
|
|
name: sys-systemctl
|
|
vars:
|
|
systemctl_timer_enabled: true
|
|
systemctl_on_calendar: "{{ SYS_SCHEDULE_BACKUP_REMOTE_TO_LOCAL }}"
|
|
|