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-Birchenbach"
description: "Configures Nginx to perform 301 redirects based on a list of source→target domain mappings."
@@ -9,16 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions
https://www.veen.world
galaxy_tags:
- nginx
- redirect
- domains
- nginx
- redirect
- domains
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/web-opt-rdr-domains"
min_ansible_version: "2.9"
platforms:
- name: Any
versions: [ all ]
dependencies:
- srv-web-7-6-https
- name: Any
versions: [all]

View File

@@ -1,9 +1,14 @@
---
# run_once_web_opt_rdr_domains: deactivated
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-6-https'
include_role:
name: srv-web-7-6-https
- set_fact:
run_once_web_opt_rdr_domains: true
when: run_once_web_opt_rdr_domains is not defined
- name: "Include domains redirects"
include_tasks: redirect-domain.yml
vars:
domain: "{{ item.source }}"
target: "{{ item.target }}"
loop: "{{ redirect_domain_mappings }}"
loop: "{{ redirect_domain_mappings }}"