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: "Automates the restart of Docker Compose instances by detecting docker-compose.yml files and executing a restart script, ensuring consistent service availability."
@@ -10,20 +9,18 @@ galaxy_info:
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- rolling
- name: Ubuntu
versions:
- all
- name: Archlinux
versions:
- rolling
- name: Ubuntu
versions:
- all
galaxy_tags:
- docker
- restart
- update
- systemd
- automation
- docker
- restart
- update
- systemd
- automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus"
dependencies:
- sys-lock

View File

@@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-lock'
include_role:
name: sys-lock
- set_fact:
run_once_sys_rpr_docker_hard: true
when: run_once_sys_rpr_docker_hard is not defined
- name: "create {{restart_docker_folder}}"
file:
path: "{{restart_docker_folder}}"
@@ -10,7 +18,7 @@
dest: "{{restart_docker_script}}"
- name: configure sys-rpr-docker-hard.infinito.service
template:
template:
src: sys-rpr-docker-hard.service.j2
dest: /etc/systemd/system/sys-rpr-docker-hard.infinito.service
notify: "reload sys-rpr-docker-hard.infinito.service"
@@ -23,4 +31,4 @@
include_role:
name: sys-timer
vars:
on_calendar: "{{on_calendar_restart_docker}}"
on_calendar: "{{on_calendar_restart_docker}}"