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: "Installs a unified systemd notification service that sends alerts via both Telegram and Email when a service fails."
@@ -10,18 +9,15 @@ galaxy_info:
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- rolling
- name: Archlinux
versions:
- rolling
galaxy_tags:
- systemd
- notifier
- telegram
- email
- notifications
- systemd
- notifier
- telegram
- email
- notifications
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-telegram
- sys-alm-email

View File

@@ -1,7 +1,17 @@
---
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-alm-telegram
- sys-alm-email
- set_fact:
run_once_sys_alm_compose: true
when: run_once_sys_alm_compose is not defined
- name: configure sys-alm-compose.infinito@.service
template:
src: sys-alm-compose@.service.j2
template:
src: sys-alm-compose@.service.j2
dest: "/etc/systemd/system/sys-alm-compose.infinito@.service"
notify: "restart sys-alm-compose service"
when: run_once_sys_alm_compose is not defined
@@ -9,4 +19,4 @@
- name: run the systemd_notifier_service tasks once
set_fact:
run_once_sys_alm_compose: true
when: run_once_sys_alm_compose is not defined
when: run_once_sys_alm_compose is not defined