mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
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:
@@ -1,9 +1,4 @@
|
||||
roles:
|
||||
cmp:
|
||||
title: "Compositions"
|
||||
description: "Composition of other roles."
|
||||
icon: "fas fa-sitemap"
|
||||
invokable: false
|
||||
docker:
|
||||
title: "Docker Toolkit"
|
||||
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.)."
|
||||
icon: "fas fa-network-wired"
|
||||
invokable: false
|
||||
stk:
|
||||
title: "Stack"
|
||||
description: "Stack levels to setup the server"
|
||||
icon: "fas fa-bars-staggered"
|
||||
invokable: false
|
||||
update:
|
||||
title: "Updates & Package Management"
|
||||
description: "OS & package updates"
|
||||
|
@@ -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.
|
@@ -1 +0,0 @@
|
||||
DATABASE_VARS_FILE: "{{ playbook_dir }}/roles/cmp-rdbms/vars/database.yml"
|
@@ -1 +0,0 @@
|
||||
{% include 'roles/cmp-rdbms/templates/services/' + database_type + '.yml.j2' %}
|
@@ -2,7 +2,7 @@
|
||||
services:
|
||||
{# Load 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 %}
|
||||
{# Load Redis #}
|
||||
{% if applications | is_docker_service_enabled(application_id, 'redis') or applications | get_app_conf(application_id, 'features.oauth2', False) %}
|
||||
|
@@ -1,18 +1,18 @@
|
||||
# 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
|
||||
|
||||
- **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**
|
||||
Utilizes the standalone `docker-compose` role to define and bring up containers, networks, and volumes automatically.
|
||||
|
||||
- **Variable Load Order**
|
||||
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.
|
||||
|
||||
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 lazy‐loading ordering.
|
||||
2. **Include Vars** in the specified order.
|
||||
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.
|
@@ -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)"
|
||||
set_fact:
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
- name: "For '{{ application_id }}': Load central RDBMS"
|
||||
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:
|
||||
name: cmp-docker-oauth2
|
||||
name: sys-stk-back-stateless
|
1
roles/sys-stk-back-stateful/vars/main.yml
Normal file
1
roles/sys-stk-back-stateful/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
DATABASE_VARS_FILE: "{{ playbook_dir }}/roles/sys-svc-rdbms/vars/database.yml"
|
@@ -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.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# run_once_cmp_docker_oauth2: disabled
|
||||
# run_once_sys_stk_back_stateless: disabled
|
||||
|
||||
- name: "For '{{ application_id }}': Load docker-compose"
|
||||
include_role:
|
@@ -6,7 +6,7 @@ This role bootstraps **per-domain Nginx configuration**: it requests TLS certifi
|
||||
|
||||
## 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.
|
||||
2. **`srv-tls-core`** – obtains Let’s Encrypt certificates.
|
@@ -1,4 +1,3 @@
|
||||
# roles/srv-domain-provision/tasks/02_enable_cf_dev_mode.yml
|
||||
---
|
||||
# Enables Cloudflare Development Mode (bypasses cache for ~3 hours).
|
||||
# Uses the same auth token as in 01_cleanup.yml: CLOUDFLARE_API_TOKEN
|
@@ -4,7 +4,7 @@
|
||||
name: srv-proxy-core
|
||||
when: run_once_srv_proxy_core is not defined
|
||||
- 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"
|
||||
when: DNS_PROVIDER == "cloudflare"
|
11
roles/sys-stk-full-stateful/README.md
Normal file
11
roles/sys-stk-full-stateful/README.md
Normal 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.
|
@@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
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: |
|
||||
Kevin Veen-Birkenbach
|
||||
Consulting & Coaching Solutions
|
@@ -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"
|
||||
vars:
|
||||
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:
|
||||
name: cmp-db-docker
|
||||
|
||||
- name: "For '{{ application_id }}': include role srv-domain-provision"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
vars:
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "For '{{ application_id }}': load docker and db"
|
||||
include_role:
|
||||
name: sys-stk-back-stateful
|
@@ -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.
|
||||
|
||||
- **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.
|
@@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
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.
|
||||
company: |
|
||||
Kevin Veen-Birkenbach
|
@@ -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
|
||||
- name: "For '{{ application_id }}': include role srv-domain-provision"
|
||||
- name: "For '{{ application_id }}': include role sys-stk-front"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
vars:
|
||||
domain: "{{ domains | get_domain(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:
|
||||
name: cmp-docker-oauth2
|
||||
|
||||
name: sys-stk-back-stateless
|
@@ -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
|
||||
# and not the central one
|
1
roles/sys-svc-rdbms/templates/services/main.yml.j2
Normal file
1
roles/sys-svc-rdbms/templates/services/main.yml.j2
Normal file
@@ -0,0 +1 @@
|
||||
{% include 'roles/sys-svc-rdbms/templates/services/' + database_type + '.yml.j2' %}
|
@@ -10,7 +10,7 @@
|
||||
|
||||
- name: "For '{{ application_id }}': load docker, db and proxy"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
# Forward flag into compose templating
|
||||
cmp_extra_facts:
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
- name: "For '{{ application_id }}': load docker and db"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
- name: "For '{{ application_id }}': load docker, db and proxy"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
@@ -11,7 +11,7 @@
|
||||
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
- name: "include 04_seed-database-to-backup.yml"
|
||||
|
@@ -2,9 +2,9 @@
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: "include role srv-domain-provision for {{ application_id }}"
|
||||
- name: "include role sys-stk-front for {{ application_id }}"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
vars:
|
||||
domain: "{{ item.domain }}"
|
||||
http_port: "{{ item.http_port }}"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: "Check if host-specific config.yaml exists in {{ DESKTOP_INVENTORY_CONFIG_PATH }}"
|
||||
stat:
|
||||
|
@@ -6,7 +6,7 @@
|
||||
file: "{{ item }}"
|
||||
loop:
|
||||
- "{{ 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
|
||||
assert:
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
|
||||
- name: "include role srv-domain-provision for {{ application_id }}"
|
||||
- name: "include role sys-stk-front for {{ application_id }}"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
vars:
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
@@ -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:
|
||||
|
||||
- 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
|
||||
- Environment variable management through Jinja2 templates
|
||||
- Docker Compose orchestration for **web**, **daemon**, and **websocket** services
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: Integrate LDAP
|
||||
include_tasks: 01_ldap.yml
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
|
||||
|
@@ -9,7 +9,7 @@ This Ansible role deploys and configures [FusionDirectory](https://www.fusiondir
|
||||
- Loads and templating of FusionDirectory-specific variables
|
||||
- Generates a `.env` file for the container environment
|
||||
- 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
|
||||
|
||||
## Features
|
||||
|
@@ -1,3 +1,3 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: Wait for Gitea HTTP endpoint
|
||||
wait_for:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
@@ -1,4 +1,4 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# Joomla CMS
|
||||
# Joomla
|
||||
|
||||
## Description
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "Include role srv-domain-provision for {{ application_id }}"
|
||||
- name: "Include role sys-stk-front for {{ application_id }}"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
loop: "{{ JOOMLA_DOMAINS }}"
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -5,4 +5,4 @@
|
||||
file: "{{ item }}"
|
||||
loop:
|
||||
- "{{ 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"
|
@@ -7,6 +7,6 @@
|
||||
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
@@ -1,3 +1,3 @@
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
proxy_extra_configuration: >-
|
||||
{% if not applications | get_app_conf(application_id, 'public_api_activated', True) %}
|
||||
|
@@ -27,7 +27,7 @@
|
||||
block:
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "Include setup for domain '{{ domain }}'"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
loop: "{{ domains['web-app-mastodon'] }}"
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: "Patch Matomo config.ini.php"
|
||||
include_tasks: 02_configuration.yml
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
|
@@ -9,9 +9,9 @@
|
||||
src: "well-known.j2"
|
||||
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:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
vars:
|
||||
domain: "{{ MATRIX_ELEMENT_DOMAIN }}"
|
||||
http_port: "{{ MATRIX_ELEMENT_PORT }}"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: Build data (single async task)
|
||||
include_tasks: 02_build_data.yml
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: add config.exs
|
||||
template:
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: Check if config.php exists
|
||||
command: docker exec --user root {{ moodle_container }} test -f {{ moodle_config }}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
proxy_extra_configuration: "sub_filter '{{MYBB_DOMAIN}}' '{{ MYBB_DOMAIN }}';"
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
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
|
||||
- name: „Trigger“ docker compose up
|
||||
|
@@ -21,7 +21,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: "Create {{ openproject_plugins_folder }}"
|
||||
file:
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
|
||||
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
|
||||
include_tasks: enable-oidc.yml
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: "configure pgadmin servers"
|
||||
include_tasks: configuration.yml
|
||||
|
@@ -1,3 +1,3 @@
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
@@ -2,6 +2,6 @@
|
||||
- block:
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
- include_tasks: utils/run_once.yml
|
||||
when: run_once_web_app_pretix is not defined
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
- name: "Configure Snipe-IT LDAP settings"
|
||||
import_tasks: ldap.yml
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
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
|
||||
- name: „Trigger“ docker compose up
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
|
||||
- name: configure {{ domain }}.conf
|
||||
template:
|
||||
|
@@ -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)
|
||||
- 📨 **Email Backend:** Supports SMTP and console backends for development.
|
||||
- 🔁 **Async & Realtime Events:** Includes RabbitMQ and support for Taiga’s 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.
|
||||
|
||||
---
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "Include role srv-domain-provision for {{ application_id }}"
|
||||
- name: "Include role sys-stk-front for {{ application_id }}"
|
||||
include_role:
|
||||
name: srv-domain-provision
|
||||
name: sys-stk-front
|
||||
loop: "{{ WORDPRESS_DOMAINS }}"
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
- name: "load docker and db for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker
|
||||
name: sys-stk-back-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
public: true
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
when: run_once_web_app_libretranslate is not defined
|
||||
|
||||
- name: run the libretranslate tasks once
|
||||
|
@@ -2,7 +2,7 @@
|
||||
- block:
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: Create symbolic link from .env file to repository
|
||||
file:
|
||||
|
@@ -2,7 +2,7 @@
|
||||
- block:
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: "Copy '{{ application_id }}' files"
|
||||
template:
|
||||
|
@@ -4,14 +4,14 @@
|
||||
# Default: Loading; Docker, Database and Reverse Proxy
|
||||
- name: "load docker, db and proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
|
||||
{% endraw %}
|
||||
{% else %}
|
||||
{% raw %}
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
name: sys-stk-full-stateful
|
||||
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
|
||||
{% endraw %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user