Replaced depenencies by includes for performance reasons

This commit is contained in:
2025-08-12 03:08:33 +02:00
parent 8634b5e1b3
commit 1a42e8bd14
89 changed files with 716 additions and 830 deletions

View File

@@ -0,0 +1,19 @@
- name: Include dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-6-https
- dev-git
- name: "include role for {{application_id}} to receive certs & do modification routines"
include_role:
name: srv-web-7-6-composer
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
- name: "generate {{domains | get_domain(application_id)}}.conf"
template:
src: "nginx.conf.j2"
dest: "{{ nginx.directories.http.servers }}{{ domains | get_domain(application_id) }}.conf"
notify: restart openresty

View File

@@ -1,28 +1,5 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-6-https
- dev-git
- set_fact:
run_once_web_svc_cdn: true
when: run_once_web_svc_cdn is not defined
- block:
- name: "include role for {{application_id}} to receive certs & do modification routines"
include_role:
name: srv-web-7-6-composer
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
- name: "generate {{domains | get_domain(application_id)}}.conf"
template:
src: "nginx.conf.j2"
dest: "{{ nginx.directories.http.servers }}{{ domains | get_domain(application_id) }}.conf"
notify: restart openresty
- include_tasks: 01_core.yml
- include_tasks: utils/run_once.yml
when: run_once_web_svc_cdn is not defined