computer-playbook/roles/sys-timer-cln-bkps
Kevin Veen-Birkenbach 2569abc0be
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.
2025-08-18 21:22:16 +02:00
..

Cleanup Backups Timer

Description

This role sets up a systemd timer to schedule the periodic cleanup of old backups. It leverages the sys-ctl-cln-bkps role to perform the actual cleanup operation.

Overview

Optimized for automated maintenance, this role:

  • Sets a fact for the service name.
  • Integrates with the sys-timer role to schedule sys-ctl-cln-backups tasks at defined intervals.

Purpose

The primary purpose of this role is to automate the scheduling of backup cleanup operations using a systemd timer, ensuring that backup storage remains within defined limits.

Features

  • Timer Scheduling: Configures a systemd timer to trigger the backup cleanup service.
  • Role Integration: Works in conjunction with the sys-ctl-cln-bkps role.
  • Idempotency: Ensures the timer tasks execute only once per playbook run.