General optimations

This commit is contained in:
2025-12-04 04:17:24 +01:00
parent 845b6e7cc1
commit 093a44b59c
4 changed files with 13 additions and 10 deletions

View File

@@ -2,7 +2,8 @@
- 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:
database_application_id: "{{ application_id }}" database_application_id: "{{ application_id }}"
database_application_type: "{{ database_type }}"
- name: "For '{{ application_id }}': Load database variables" - name: "For '{{ application_id }}': Load database variables"
include_vars: "{{ item }}" include_vars: "{{ item }}"

View File

@@ -1,6 +1,6 @@
# run_once_sys_stk_front_proxy: deactivated # run_once_sys_stk_front_proxy: deactivated
- name: Front bootstrap - name: Bootstrap Frontend Nase
include_role: include_role:
name: sys-stk-front-base name: sys-stk-front-base
@@ -8,7 +8,7 @@
include_role: include_role:
name: sys-util-csp-cert name: sys-util-csp-cert
- name: "Copy nginx config to '{{ front_proxy_domain_conf_dst }}'" - name: "Copy NGINX ('{{ domain }}') config to '{{ front_proxy_domain_conf_dst }}'"
template: template:
src: "{{ item }}" src: "{{ item }}"
dest: "{{ front_proxy_domain_conf_dst }}" dest: "{{ front_proxy_domain_conf_dst }}"
@@ -28,7 +28,7 @@
failed_when: false failed_when: false
changed_when: false changed_when: false
- name: Restart nginx if site is down - name: Restart NGINX if site is down
command: command:
cmd: "true" cmd: "true"
notify: restart openresty notify: restart openresty

View File

@@ -1,5 +1,5 @@
--- ---
- name: docker restart - name: Ensure Docker daemon is running on host
ansible.builtin.service: ansible.builtin.service:
name: docker.service name: docker.service
state: restarted state: restarted

View File

@@ -14,17 +14,21 @@
- name: "Include tasks to create directories" - name: "Include tasks to create directories"
include_tasks: 04_directories.yml include_tasks: 04_directories.yml
- name: Include OpenResty (Once) - name: Load OpenResty
include_tasks: "utils/load_app.yml" include_tasks: "utils/load_app.yml"
vars: vars:
load_app_id: svc-prx-openresty load_app_id: svc-prx-openresty
docker_compose_flush_handlers: false # Prevent deploy until initial Config is created
- name: Create NGINX Base Config - name: Deploy OpenResty NGINX Base Configuration
template: template:
src: nginx.conf.j2 src: nginx.conf.j2
dest: "{{ NGINX.FILES.CONFIGURATION }}" dest: "{{ NGINX.FILES.CONFIGURATION }}"
notify: restart openresty notify: restart openresty
- name: Flush OpenResty Base Setup
meta: flush_handlers
- name: Include health dependencies - name: Include health dependencies
include_role: include_role:
name: "{{ item }}" name: "{{ item }}"
@@ -32,6 +36,4 @@
- sys-ctl-hlth-webserver - sys-ctl-hlth-webserver
- sys-ctl-hlth-csp - sys-ctl-hlth-csp
- meta: flush_handlers
- include_tasks: utils/once/flag.yml - include_tasks: utils/once/flag.yml