Optimized tests für run once

This commit is contained in:
2025-08-12 02:38:37 +02:00
parent 82aaf7ad74
commit 1595a7c4a6
148 changed files with 1803 additions and 1147 deletions

View File

@@ -1,4 +1,3 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Schedules periodic cleanup of old backups by configuring a systemd timer to trigger the sys-cln-bkps-service role."
@@ -10,17 +9,14 @@ galaxy_info:
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Linux
versions:
- all
- name: Linux
versions:
- all
galaxy_tags:
- timer
- backup
- cleanup
- automation
- timer
- backup
- cleanup
- automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus"
dependencies:
- sys-cln-bkps-service
- sys-rst-daemon

View File

@@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-cln-bkps-service
- sys-rst-daemon
- set_fact:
run_once_sys_cln_bkps_timer: true
when: run_once_sys_cln_bkps_timer is not defined
- name: set service_name to sys-cln-backups
set_fact:
service_name: "sys-cln-backups"
@@ -7,7 +18,7 @@
include_role:
name: sys-timer
vars:
on_calendar: "{{on_calendar_cleanup_backups}}"
on_calendar: "{{on_calendar_cleanup_backups}}"
when: run_once_sys_cln_bkps_timer is not defined
- name: run the cleanup_backups_timer tasks once