Refactor: migrate cmp/* and srv/* roles into sys-stk/* and sys-svc/* namespaces

- Removed obsolete 'cmp' category, introduced 'stk' category (fa-bars-staggered icon).
- Renamed roles:
  * cmp-db-docker → sys-stk-back-stateful
  * cmp-docker-oauth2 → sys-stk-back-stateless
  * srv-domain-provision → sys-stk-front
  * cmp-db-docker-proxy → sys-stk-full-stateful
  * cmp-docker-proxy → sys-stk-full-stateless
  * cmp-rdbms → sys-svc-rdbms
- Updated all include_role references, vars, templates and README.md files.
- Adjusted run_once comments and variable paths accordingly.
- Updated all web-app roles to use new sys-stk/* and sys-svc/* roles.

Conversation: https://chatgpt.com/share/68b0ba66-09f8-800f-86fc-76c47009d431
This commit is contained in:
2025-08-28 22:23:09 +02:00
parent 92f5bf6481
commit 6ea8301364
94 changed files with 112 additions and 114 deletions

View File

@@ -1,9 +1,4 @@
roles: roles:
cmp:
title: "Compositions"
description: "Composition of other roles."
icon: "fas fa-sitemap"
invokable: false
docker: docker:
title: "Docker Toolkit" title: "Docker Toolkit"
description: "Generic Docker helpers and utilities (compose wrappers, container tooling)." description: "Generic Docker helpers and utilities (compose wrappers, container tooling)."
@@ -56,6 +51,11 @@ roles:
description: "DNS providers, records, and rDNS management (Cloudflare, Hetzner, etc.)." description: "DNS providers, records, and rDNS management (Cloudflare, Hetzner, etc.)."
icon: "fas fa-network-wired" icon: "fas fa-network-wired"
invokable: false invokable: false
stk:
title: "Stack"
description: "Stack levels to setup the server"
icon: "fas fa-bars-staggered"
invokable: false
update: update:
title: "Updates & Package Management" title: "Updates & Package Management"
description: "OS & package updates" description: "OS & package updates"

View File

@@ -1,11 +0,0 @@
# Database Docker with Web Proxy
This role builds on `cmp-db-docker` by adding a reverse-proxy frontend for HTTP access to your database service.
## Features
- **Database Composition**
Leverages the `cmp-db-docker` role to stand up your containerized database (PostgreSQL, MariaDB, etc.) with backups and user management.
- **Reverse Proxy**
Includes the `srv-domain-provision` role to configure a proxy (e.g. nginx) for routing HTTP(S) traffic to your database UI or management endpoint.

View File

@@ -1 +0,0 @@
DATABASE_VARS_FILE: "{{ playbook_dir }}/roles/cmp-rdbms/vars/database.yml"

View File

@@ -1 +0,0 @@
{% include 'roles/cmp-rdbms/templates/services/' + database_type + '.yml.j2' %}

View File

@@ -2,7 +2,7 @@
services: services:
{# Load Database #} {# Load Database #}
{% if applications | is_docker_service_enabled(application_id, 'database') %} {% if applications | is_docker_service_enabled(application_id, 'database') %}
{% include 'roles/cmp-rdbms/templates/services/main.yml.j2' %} {% include 'roles/sys-svc-rdbms/templates/services/main.yml.j2' %}
{% endif %} {% endif %}
{# Load Redis #} {# Load Redis #}
{% if applications | is_docker_service_enabled(application_id, 'redis') or applications | get_app_conf(application_id, 'features.oauth2', False) %} {% if applications | is_docker_service_enabled(application_id, 'redis') or applications | get_app_conf(application_id, 'features.oauth2', False) %}

View File

@@ -1,18 +1,18 @@
# Database Docker Composition # Database Docker Composition
This role combines the central RDBMS role (`cmp-rdbms`) with Docker Compose to deliver a ready-to-use containerized database environment. This role combines the central RDBMS role (`sys-svc-rdbms`) with Docker Compose to deliver a ready-to-use containerized database environment.
## Features ## Features
- **Central RDBMS Integration** - **Central RDBMS Integration**
Includes the `cmp-rdbms` role, which handles backups, restores, user and permission management for your relational database system (PostgreSQL, MariaDB, etc.). Includes the `sys-svc-rdbms` role, which handles backups, restores, user and permission management for your relational database system (PostgreSQL, MariaDB, etc.).
- **Docker Compose** - **Docker Compose**
Utilizes the standalone `docker-compose` role to define and bring up containers, networks, and volumes automatically. Utilizes the standalone `docker-compose` role to define and bring up containers, networks, and volumes automatically.
- **Variable Load Order** - **Variable Load Order**
1. Docker Compose variables (`roles/docker-compose/vars/docker-compose.yml`) 1. Docker Compose variables (`roles/docker-compose/vars/docker-compose.yml`)
2. Database variables (`roles/cmp-rdbms/vars/database.yml`) 2. Database variables (`roles/sys-svc-rdbms/vars/database.yml`)
Ensures compose ports and volumes are defined before the database role consumes them. Ensures compose ports and volumes are defined before the database role consumes them.
The role will load both sub-roles and satisfy all dependencies transparently. The role will load both sub-roles and satisfy all dependencies transparently.
@@ -22,4 +22,4 @@ The role will load both sub-roles and satisfy all dependencies transparently.
1. **Set Fact** `database_application_id` to work around lazyloading ordering. 1. **Set Fact** `database_application_id` to work around lazyloading ordering.
2. **Include Vars** in the specified order. 2. **Include Vars** in the specified order.
3. **Invoke** `docker-compose` role to create containers, networks, and volumes. 3. **Invoke** `docker-compose` role to create containers, networks, and volumes.
4. **Invoke** `cmp-rdbms` role to provision the database, backups, and users. 4. **Invoke** `sys-svc-rdbms` role to provision the database, backups, and users.

View File

@@ -1,4 +1,4 @@
# run_once_cmp_db_docker: disabled # run_once_sys_stk_back_stateful: disabled
- name: "For '{{ application_id }}': Set database_application_id (Needed due to lazzy loading issue)" - name: "For '{{ application_id }}': Set database_application_id (Needed due to lazzy loading issue)"
set_fact: set_fact:
@@ -12,8 +12,8 @@
- name: "For '{{ application_id }}': Load central RDBMS" - name: "For '{{ application_id }}': Load central RDBMS"
include_role: include_role:
name: cmp-rdbms name: sys-svc-rdbms
- name: "For '{{ application_id }}': Load cmp-docker-oauth2" - name: "For '{{ application_id }}': Load sys-stk-back-stateless"
include_role: include_role:
name: cmp-docker-oauth2 name: sys-stk-back-stateless

View File

@@ -0,0 +1 @@
DATABASE_VARS_FILE: "{{ playbook_dir }}/roles/sys-svc-rdbms/vars/database.yml"

View File

@@ -1,4 +1,4 @@
# cmp-docker-oauth2 # sys-stk-back-stateless
This Ansible role enhances a Docker Compose application by conditionally enabling OAuth2-based authentication. It ensures that the `docker-compose` role is always loaded, and if the application has OAuth2 support enabled via `features.oauth2`, it also configures the OAuth2 proxy. This Ansible role enhances a Docker Compose application by conditionally enabling OAuth2-based authentication. It ensures that the `docker-compose` role is always loaded, and if the application has OAuth2 support enabled via `features.oauth2`, it also configures the OAuth2 proxy.

View File

@@ -1,4 +1,4 @@
# run_once_cmp_docker_oauth2: disabled # run_once_sys_stk_back_stateless: disabled
- name: "For '{{ application_id }}': Load docker-compose" - name: "For '{{ application_id }}': Load docker-compose"
include_role: include_role:

View File

@@ -6,7 +6,7 @@ This role bootstraps **per-domain Nginx configuration**: it requests TLS certifi
## Overview ## Overview
A higher-level orchestration wrapper, *srv-domain-provision* ties together several lower-level roles: A higher-level orchestration wrapper, *sys-stk-front* ties together several lower-level roles:
1. **`sys-srv-web-inj-compose`** applies global tweaks and includes. 1. **`sys-srv-web-inj-compose`** applies global tweaks and includes.
2. **`srv-tls-core`** obtains Lets Encrypt certificates. 2. **`srv-tls-core`** obtains Lets Encrypt certificates.

View File

@@ -1,4 +1,3 @@
# roles/srv-domain-provision/tasks/02_enable_cf_dev_mode.yml
--- ---
# Enables Cloudflare Development Mode (bypasses cache for ~3 hours). # Enables Cloudflare Development Mode (bypasses cache for ~3 hours).
# Uses the same auth token as in 01_cleanup.yml: CLOUDFLARE_API_TOKEN # Uses the same auth token as in 01_cleanup.yml: CLOUDFLARE_API_TOKEN

View File

@@ -4,7 +4,7 @@
name: srv-proxy-core name: srv-proxy-core
when: run_once_srv_proxy_core is not defined when: run_once_srv_proxy_core is not defined
- include_tasks: utils/run_once.yml - include_tasks: utils/run_once.yml
when: run_once_srv_domain_provision is not defined when: run_once_sys_stk_front is not defined
- include_tasks: "01_cloudflare.yml" - include_tasks: "01_cloudflare.yml"
when: DNS_PROVIDER == "cloudflare" when: DNS_PROVIDER == "cloudflare"

View File

@@ -0,0 +1,11 @@
# Database Docker with Web Proxy
This role builds on `sys-stk-back-stateful` by adding a reverse-proxy frontend for HTTP access to your database service.
## Features
- **Database Composition**
Leverages the `sys-stk-back-stateful` role to stand up your containerized database (PostgreSQL, MariaDB, etc.) with backups and user management.
- **Reverse Proxy**
Includes the `sys-stk-front` role to configure a proxy (e.g. nginx) for routing HTTP(S) traffic to your database UI or management endpoint.

View File

@@ -1,7 +1,7 @@
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: > description: >
Extends cmp-db-docker by adding an HTTP reverse proxy via srv-domain-provision. Extends sys-stk-back-stateful by adding an HTTP reverse proxy via sys-stk-front.
company: | company: |
Kevin Veen-Birkenbach Kevin Veen-Birkenbach
Consulting & Coaching Solutions Consulting & Coaching Solutions

View File

@@ -1,16 +1,16 @@
# run_once_cmp_db_docker_proxy: deactivated # run_once_sys_stk_full_stateful: deactivated
- include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml" - include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
vars: vars:
handler_role_name: "svc-prx-openresty" handler_role_name: "svc-prx-openresty"
- name: "For '{{ application_id }}': load docker and db" - name: "For '{{ application_id }}': include role sys-stk-front"
include_role: include_role:
name: cmp-db-docker name: sys-stk-front
- name: "For '{{ application_id }}': include role srv-domain-provision"
include_role:
name: srv-domain-provision
vars: vars:
domain: "{{ domains | get_domain(application_id) }}" domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}" http_port: "{{ ports.localhost.http[application_id] }}"
- name: "For '{{ application_id }}': load docker and db"
include_role:
name: sys-stk-back-stateful

View File

@@ -8,4 +8,4 @@ This role combines the standard Docker Compose setup with a reverse-proxy for an
Brings up containers, networks, and volumes via the `docker-compose` role. Brings up containers, networks, and volumes via the `docker-compose` role.
- **Reverse Proxy** - **Reverse Proxy**
Uses the `srv-domain-provision` role to expose your application under a custom domain and port. Uses the `sys-stk-front` role to expose your application under a custom domain and port.

View File

@@ -1,7 +1,7 @@
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: > description: >
Combines the docker-compose role with srv-domain-provision to Combines the docker-compose role with sys-stk-front to
deploy applications behind a reverse proxy. deploy applications behind a reverse proxy.
company: | company: |
Kevin Veen-Birkenbach Kevin Veen-Birkenbach

View File

@@ -1,14 +1,13 @@
# run_once_cmp_docker_proxy: deactivated # run_once_sys_stk_full_stateless: deactivated
# Load the proxy first, so that openresty handlers are flushed before the main docker compose # Load the proxy first, so that openresty handlers are flushed before the main docker compose
- name: "For '{{ application_id }}': include role srv-domain-provision" - name: "For '{{ application_id }}': include role sys-stk-front"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
vars: vars:
domain: "{{ domains | get_domain(application_id) }}" domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}" http_port: "{{ ports.localhost.http[application_id] }}"
- name: "For '{{ application_id }}': Load cmp-docker-oauth2" - name: "For '{{ application_id }}': Load sys-stk-back-stateless"
include_role: include_role:
name: cmp-docker-oauth2 name: sys-stk-back-stateless

View File

@@ -1,4 +1,4 @@
# run_once_cmp_rdbms: deactivated # run_once_sys_svc_rdbms: deactivated
# The following env file will just be used from the dedicated mariadb container # The following env file will just be used from the dedicated mariadb container
# and not the central one # and not the central one

View File

@@ -0,0 +1 @@
{% include 'roles/sys-svc-rdbms/templates/services/' + database_type + '.yml.j2' %}

View File

@@ -10,7 +10,7 @@
- name: "For '{{ application_id }}': load docker, db and proxy" - name: "For '{{ application_id }}': load docker, db and proxy"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
# Forward flag into compose templating # Forward flag into compose templating
cmp_extra_facts: cmp_extra_facts:

View File

@@ -11,7 +11,7 @@
- name: "For '{{ application_id }}': load docker and db" - name: "For '{{ application_id }}': load docker and db"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,4 +1,4 @@
--- ---
- name: "For '{{ application_id }}': load docker, db and proxy" - name: "For '{{ application_id }}': load docker, db and proxy"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -11,7 +11,7 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false
- name: "include 04_seed-database-to-backup.yml" - name: "include 04_seed-database-to-backup.yml"

View File

@@ -2,9 +2,9 @@
include_role: include_role:
name: docker-compose name: docker-compose
- name: "include role srv-domain-provision for {{ application_id }}" - name: "include role sys-stk-front for {{ application_id }}"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
vars: vars:
domain: "{{ item.domain }}" domain: "{{ item.domain }}"
http_port: "{{ item.http_port }}" http_port: "{{ item.http_port }}"

View File

@@ -7,7 +7,7 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
- name: "Check if host-specific config.yaml exists in {{ DESKTOP_INVENTORY_CONFIG_PATH }}" - name: "Check if host-specific config.yaml exists in {{ DESKTOP_INVENTORY_CONFIG_PATH }}"
stat: stat:

View File

@@ -6,7 +6,7 @@
file: "{{ item }}" file: "{{ item }}"
loop: loop:
- "{{ playbook_dir }}/roles/docker-compose/vars/docker-compose.yml" - "{{ playbook_dir }}/roles/docker-compose/vars/docker-compose.yml"
- "{{ playbook_dir }}/roles/cmp-rdbms/vars/database.yml" - "{{ playbook_dir }}/roles/sys-svc-rdbms/vars/database.yml"
- name: Sanity check for required vars - name: Sanity check for required vars
assert: assert:

View File

@@ -6,7 +6,7 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,8 +1,8 @@
--- ---
- name: "include role srv-domain-provision for {{ application_id }}" - name: "include role sys-stk-front for {{ application_id }}"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
vars: vars:
domain: "{{ domains | get_domain(application_id) }}" domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}" http_port: "{{ ports.localhost.http[application_id] }}"

View File

@@ -8,7 +8,7 @@ Enhance your sales and service processes with EspoCRM, an open-source CRM featur
This Ansible role deploys EspoCRM using Docker. It handles: This Ansible role deploys EspoCRM using Docker. It handles:
- MariaDB database provisioning via the `cmp-rdbms` role - MariaDB database provisioning via the `sys-svc-rdbms` role
- Nginx domain setup with WebSocket and reverse-proxy configuration - Nginx domain setup with WebSocket and reverse-proxy configuration
- Environment variable management through Jinja2 templates - Environment variable management through Jinja2 templates
- Docker Compose orchestration for **web**, **daemon**, and **websocket** services - Docker Compose orchestration for **web**, **daemon**, and **websocket** services

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: Integrate LDAP - name: Integrate LDAP
include_tasks: 01_ldap.yml include_tasks: 01_ldap.yml

View File

@@ -1,6 +1,6 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -9,7 +9,7 @@ This Ansible role deploys and configures [FusionDirectory](https://www.fusiondir
- Loads and templating of FusionDirectory-specific variables - Loads and templating of FusionDirectory-specific variables
- Generates a `.env` file for the container environment - Generates a `.env` file for the container environment
- Deploys the FusionDirectory container via Docker Compose - Deploys the FusionDirectory container via Docker Compose
- Configures NGINX (via the `srv-domain-provision` role) to expose the service - Configures NGINX (via the `sys-stk-front` role) to expose the service
- Integrates with your central LDAP server for authentication - Integrates with your central LDAP server for authentication
## Features ## Features

View File

@@ -1,3 +1,3 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: Wait for Gitea HTTP endpoint - name: Wait for Gitea HTTP endpoint
wait_for: wait_for:

View File

@@ -1,4 +1,4 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -1,4 +1,4 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -1,4 +1,4 @@
# Joomla CMS # Joomla
## Description ## Description

View File

@@ -1,7 +1,7 @@
--- ---
- name: "Include role srv-domain-provision for {{ application_id }}" - name: "Include role sys-stk-front for {{ application_id }}"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
loop: "{{ JOOMLA_DOMAINS }}" loop: "{{ JOOMLA_DOMAINS }}"
loop_control: loop_control:
loop_var: domain loop_var: domain
@@ -10,7 +10,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -5,4 +5,4 @@
file: "{{ item }}" file: "{{ item }}"
loop: loop:
- "{{ playbook_dir }}/roles/docker-compose/vars/docker-compose.yml" - "{{ playbook_dir }}/roles/docker-compose/vars/docker-compose.yml"
- "{{ playbook_dir }}/roles/cmp-rdbms/vars/database.yml" - "{{ playbook_dir }}/roles/sys-svc-rdbms/vars/database.yml"

View File

@@ -7,6 +7,6 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,3 +1,3 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
proxy_extra_configuration: >- proxy_extra_configuration: >-
{% if not applications | get_app_conf(application_id, 'public_api_activated', True) %} {% if not applications | get_app_conf(application_id, 'public_api_activated', True) %}

View File

@@ -27,7 +27,7 @@
block: block:
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,7 +1,7 @@
--- ---
- name: "Include setup for domain '{{ domain }}'" - name: "Include setup for domain '{{ domain }}'"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
loop: "{{ domains['web-app-mastodon'] }}" loop: "{{ domains['web-app-mastodon'] }}"
loop_control: loop_control:
loop_var: domain loop_var: domain
@@ -14,7 +14,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,6 +1,6 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: "Patch Matomo config.ini.php" - name: "Patch Matomo config.ini.php"
include_tasks: 02_configuration.yml include_tasks: 02_configuration.yml

View File

@@ -1,6 +1,6 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false

View File

@@ -9,9 +9,9 @@
src: "well-known.j2" src: "well-known.j2"
dest: "{{ MATRIX_WELL_KNOWN_FILE }}" dest: "{{ MATRIX_WELL_KNOWN_FILE }}"
- name: "include role srv-domain-provision for {{ MATRIX_ELEMENT_DOMAIN }}" - name: "include role sys-stk-front for {{ MATRIX_ELEMENT_DOMAIN }}"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
vars: vars:
domain: "{{ MATRIX_ELEMENT_DOMAIN }}" domain: "{{ MATRIX_ELEMENT_DOMAIN }}"
http_port: "{{ MATRIX_ELEMENT_PORT }}" http_port: "{{ MATRIX_ELEMENT_PORT }}"

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false

View File

@@ -18,7 +18,7 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
- name: Build data (single async task) - name: Build data (single async task)
include_tasks: 02_build_data.yml include_tasks: 02_build_data.yml

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: add config.exs - name: add config.exs
template: template:

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: Check if config.php exists - name: Check if config.php exists
command: docker exec --user root {{ moodle_container }} test -f {{ moodle_config }} command: docker exec --user root {{ moodle_container }} test -f {{ moodle_config }}

View File

@@ -1,6 +1,6 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false
proxy_extra_configuration: "sub_filter '{{MYBB_DOMAIN}}' '{{ MYBB_DOMAIN }}';" proxy_extra_configuration: "sub_filter '{{MYBB_DOMAIN}}' '{{ MYBB_DOMAIN }}';"

View File

@@ -16,7 +16,7 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
# Hack because it wasn't possible to fix an handler bug in pkgmgr install # Hack because it wasn't possible to fix an handler bug in pkgmgr install
- name: „Trigger“ docker compose up - name: „Trigger“ docker compose up

View File

@@ -21,7 +21,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: "Create {{ openproject_plugins_folder }}" - name: "Create {{ openproject_plugins_folder }}"
file: file:

View File

@@ -11,7 +11,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled" - name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
include_tasks: enable-oidc.yml include_tasks: enable-oidc.yml

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
- name: "configure pgadmin servers" - name: "configure pgadmin servers"
include_tasks: configuration.yml include_tasks: configuration.yml

View File

@@ -1,3 +1,3 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless

View File

@@ -1,4 +1,4 @@
--- ---
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless

View File

@@ -1,4 +1,4 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -2,6 +2,6 @@
- block: - block:
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
- include_tasks: utils/run_once.yml - include_tasks: utils/run_once.yml
when: run_once_web_app_pretix is not defined when: run_once_web_app_pretix is not defined

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
- name: "Configure Snipe-IT LDAP settings" - name: "Configure Snipe-IT LDAP settings"
import_tasks: ldap.yml import_tasks: ldap.yml

View File

@@ -15,7 +15,7 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
# Hack because it wasn't possible to fix an handler bug in pkgmgr install # Hack because it wasn't possible to fix an handler bug in pkgmgr install
- name: „Trigger“ docker compose up - name: „Trigger“ docker compose up

View File

@@ -5,7 +5,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
- name: configure {{ domain }}.conf - name: configure {{ domain }}.conf
template: template:

View File

@@ -39,7 +39,7 @@ By using this role, teams can set up Taiga in minutes on Arch Linux systems —
- [taiga-contrib-oidc-auth (official)](https://github.com/taigaio/taiga-contrib-oidc-auth) - [taiga-contrib-oidc-auth (official)](https://github.com/taigaio/taiga-contrib-oidc-auth)
- 📨 **Email Backend:** Supports SMTP and console backends for development. - 📨 **Email Backend:** Supports SMTP and console backends for development.
- 🔁 **Async & Realtime Events:** Includes RabbitMQ and support for Taigas event system. - 🔁 **Async & Realtime Events:** Includes RabbitMQ and support for Taigas event system.
- 🌐 **Reverse Proxy Ready:** Integrates with Nginx using the `srv-domain-provision` role. - 🌐 **Reverse Proxy Ready:** Integrates with Nginx using the `sys-stk-front` role.
- 🧩 **Composable Design:** Integrates cleanly with other Infinito.Nexus infrastructure roles. - 🧩 **Composable Design:** Integrates cleanly with other Infinito.Nexus infrastructure roles.
--- ---

View File

@@ -1,7 +1,7 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false

View File

@@ -1,7 +1,7 @@
--- ---
- name: "Include role srv-domain-provision for {{ application_id }}" - name: "Include role sys-stk-front for {{ application_id }}"
include_role: include_role:
name: srv-domain-provision name: sys-stk-front
loop: "{{ WORDPRESS_DOMAINS }}" loop: "{{ WORDPRESS_DOMAINS }}"
loop_control: loop_control:
loop_var: domain loop_var: domain
@@ -11,7 +11,7 @@
- name: "load docker and db for {{ application_id }}" - name: "load docker and db for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker name: sys-stk-back-stateful
vars: vars:
docker_compose_flush_handlers: false docker_compose_flush_handlers: false

View File

@@ -1,5 +1,5 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -1,6 +1,6 @@
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
public: true public: true
vars: vars:
docker_compose_flush_handlers: true docker_compose_flush_handlers: true

View File

@@ -1,4 +1,4 @@
--- ---
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful

View File

@@ -1,6 +1,6 @@
- name: "load docker, db and proxy for {{ application_id }}" - name: "load docker, db and proxy for {{ application_id }}"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
when: run_once_web_app_libretranslate is not defined when: run_once_web_app_libretranslate is not defined
- name: run the libretranslate tasks once - name: run the libretranslate tasks once

View File

@@ -2,7 +2,7 @@
- block: - block:
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
- name: Create symbolic link from .env file to repository - name: Create symbolic link from .env file to repository
file: file:

View File

@@ -2,7 +2,7 @@
- block: - block:
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-docker-proxy name: sys-stk-full-stateless
- name: "Copy '{{ application_id }}' files" - name: "Copy '{{ application_id }}' files"
template: template:

View File

@@ -4,14 +4,14 @@
# Default: Loading; Docker, Database and Reverse Proxy # Default: Loading; Docker, Database and Reverse Proxy
- name: "load docker, db and proxy for '{{ application_id }}'" - name: "load docker, db and proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
{% endraw %} {% endraw %}
{% else %} {% else %}
{% raw %} {% raw %}
- name: "load docker, proxy for '{{ application_id }}'" - name: "load docker, proxy for '{{ application_id }}'"
include_role: include_role:
name: cmp-db-docker-proxy name: sys-stk-full-stateful
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
{% endraw %} {% endraw %}
{% endif %} {% endif %}