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: "Checks that each Nginx domain returns its expected HTTP status and alerts on unexpected codes."
@@ -10,17 +9,14 @@ 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
- webserver
- nginx
- http
- health
- systemd
- monitor
- webserver
- nginx
- http
- health
- systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus"
dependencies:
- dev-python-pip
- sys-alm-compose

View File

@@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-python-pip
- sys-alm-compose
- set_fact:
run_once_sys_hlth_webserver: true
when: run_once_sys_hlth_webserver is not defined
- name: Install required Python modules
community.general.pacman:
name: python-requests
@@ -15,7 +26,7 @@
dest: "{{ health_nginx_folder }}sys-hlth-webserver.py"
- name: create sys-hlth-webserver.infinito.service
template:
template:
src: sys-hlth-webserver.service.j2
dest: /etc/systemd/system/sys-hlth-webserver.infinito.service
notify: reload sys-hlth-webserver.infinito.service
@@ -28,4 +39,4 @@
include_role:
name: sys-timer
vars:
on_calendar: "{{on_calendar_health_nginx}}"
on_calendar: "{{on_calendar_health_nginx}}"