THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs

This commit is contained in:
2025-08-15 15:15:48 +02:00
parent 0228014d34
commit 022800425d
271 changed files with 1098 additions and 916 deletions

View File

@@ -6,13 +6,13 @@
- include_tasks: utils/run_once.yml
when: run_once_web_app_mybb is not defined
- name: "include tasks setup-domain.yml with {{domains | get_domain(application_id)}}"
- name: "include tasks setup-domain.yml with {{ domains | get_domain(application_id) }}"
include_tasks: setup-domain.yml
loop: "{{ mybb_domains + [source_domain] }}"
loop_control:
loop_var: domain
- name: "load docker and db for {{application_id}}"
- name: "load docker and db for {{ application_id }}"
include_role:
name: cmp-db-docker

View File

@@ -2,12 +2,12 @@
include_role:
name: srv-web-6-6-tls-core
vars:
domain: "{{domains | get_domain(application_id)}}"
domain: "{{ domains | get_domain(application_id) }}"
- name: configure {{domains | get_domain(application_id)}}.conf
- name: configure {{ domains | get_domain(application_id) }}.conf
template:
src: "roles/srv-proxy-7-4-core/templates/vhost/basic.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domains | get_domain(application_id)}}.conf"
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
notify: restart openresty
vars:
proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{domains | get_domain(application_id)}}';"
proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{ domains | get_domain(application_id) }}';"