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,27 +1,23 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Automated backups to a swappable USB device."
license: "Infinito.Nexus NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
company: |
company: |
Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- rolling
- name: Archlinux
versions:
- rolling
galaxy_tags:
- backup
- usb
- systemd
- automation
- archlinux
- backup
- usb
- systemd
- automation
- archlinux
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-lock

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