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,9 +1,20 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-cln-bkps-service
- sys-lock
- set_fact:
run_once_svc_bkp_loc_2_usb: true
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 != ""
- 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:
@@ -27,4 +38,4 @@
owner: root
group: root
mode: '0644'
notify: reload svc-bkp-loc-2-usb.infinito.service
notify: reload svc-bkp-loc-2-usb.infinito.service