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: "Periodic MTA health-check: sends test mail via msmtp and alerts on failure."
@@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions: ["rolling"]
- name: Archlinux
versions: ["rolling"]
galaxy_tags:
- monitor
- msmtp
- email
- health
- systemd
- monitor
- msmtp
- email
- health
- systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-telegram

View File

@@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-telegram'
include_role:
name: sys-alm-telegram
- set_fact:
run_once_sys_hlth_msmtp: true
when: run_once_sys_hlth_msmtp is not defined
- name: "create {{ health_msmtp_folder }}"
file:
path: "{{ health_msmtp_folder }}"
@@ -6,7 +14,7 @@
- name: create sys-hlth-msmtp.sh
template:
src: sys-hlth-msmtp.sh.j2
src: sys-hlth-msmtp.sh.j2
dest: "{{ health_msmtp_folder }}sys-hlth-msmtp.sh"
mode: '0755'
@@ -24,4 +32,4 @@
include_role:
name: sys-timer
vars:
on_calendar: "{{ on_calendar_health_msmtp }}"
on_calendar: "{{ on_calendar_health_msmtp }}"