mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-06 02:11:42 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
@@ -9,7 +9,7 @@ This role cleans up failed Docker backups by pulling a [Git repository](https://
|
||||
Optimized for backup maintenance, this role:
|
||||
- Clones the cleanup-failed-docker-backups repository.
|
||||
- Configures a systemd service to run the cleanup script.
|
||||
- Integrates with the [systemd-timer](../systemd-timer/README.md) role to schedule periodic cleanup.
|
||||
- Integrates with the [generic-timer](../generic-timer/README.md) role to schedule periodic cleanup.
|
||||
- Works in conjunction with the backup-directory-validator role for additional verification.
|
||||
|
||||
## Purpose
|
||||
|
@@ -22,6 +22,6 @@ galaxy_info:
|
||||
issue_tracker_url: "https://s.veen.world/cymaisissues"
|
||||
documentation: "https://s.veen.world/cymais"
|
||||
dependencies:
|
||||
- systemd-notifier
|
||||
- system-maintenance-lock
|
||||
- alert-core
|
||||
- maintenance-lock
|
||||
- backup-directory-validator
|
||||
|
@@ -29,9 +29,9 @@
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_cleanup_failed_docker_backups is not defined
|
||||
|
||||
- name: "include role for systemd-timer for {{service_name}}"
|
||||
- name: "include role for generic-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: systemd-timer
|
||||
name: generic-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_cleanup_failed_docker}}"
|
||||
when: run_once_cleanup_failed_docker_backups is not defined
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=Cleaning up failed docker volume backups
|
||||
OnFailure=systemd-notifier.cymais@%n.service
|
||||
OnFailure=alert-core.cymais@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user