Added utils/load_handlers.yml required due to update 2.18 -> 2.20

This commit is contained in:
2025-12-04 11:04:00 +01:00
parent e5a3c1f0e2
commit 73ec220847
4 changed files with 21 additions and 16 deletions

View File

@@ -3,8 +3,15 @@
include_role: include_role:
name: docker-compose name: docker-compose
vars: vars:
docker_compose_flush_handlers: true
docker_git_repository_pull: false # Deactivated here to deactivate inhirement docker_git_repository_pull: false # Deactivated here to deactivate inhirement
database_type: "" # Deactivate Database for openresty database_type: "" # Deactivate Database for openresty
docker_compose_flush_handlers: true
- include_tasks: utils/once/flag.yml - include_tasks: utils/once/flag.yml
when: run_once_svc_prx_openresty is not defined when: run_once_svc_prx_openresty is not defined
- name: "Reinitialize OpenResty Handler"
# The 'when: run_once_svc_prx_openresty is not defined' prevents otherwise
# the handler execution
include_tasks: utils/load_handlers.yml
vars:
handler_role_name: "svc-prx-openresty"

View File

@@ -18,12 +18,12 @@
- name: "For '{{ application_id }}': Create central database" - name: "For '{{ application_id }}': Create central database"
# I don't know why this includes leads to that the application_id in vars/main.yml of the database role isn't used # I don't know why this includes leads to that the application_id in vars/main.yml of the database role isn't used
# This is the behaviour which I want, but I'm still wondering why ;) # This is the behaviour which I want, but I'm still wondering why ;)
include_role: include_tasks: "utils/load_app.yml"
name: "svc-db-{{ database_type }}"
when: SYS_SVC_RDBMS_CENTRAL_DB_ENABLED | bool
vars: vars:
load_app_id: "svc-db-{{ database_application_type }}"
database_init: true # Initialize a custom database for the application database_init: true # Initialize a custom database for the application
docker_git_repository_pull: false # Deactivated here to don't inhire the variable docker_git_repository_pull: false # Deactivated here to don't inhire the variable
when: SYS_SVC_RDBMS_CENTRAL_DB_ENABLED | bool
- name: "For '{{ application_id }}': Add Entry for Backup Procedure" - name: "For '{{ application_id }}': Add Entry for Backup Procedure"
include_tasks: "{{ playbook_dir }}/roles/sys-ctl-bkp-docker-2-loc/tasks/04_seed-database-to-backup.yml" include_tasks: "{{ playbook_dir }}/roles/sys-ctl-bkp-docker-2-loc/tasks/04_seed-database-to-backup.yml"

View File

@@ -14,11 +14,10 @@
- name: "Include tasks to create directories" - name: "Include tasks to create directories"
include_tasks: 04_directories.yml include_tasks: 04_directories.yml
- name: Load OpenResty - name: "Provide OpenResty Handlers for Webserver"
include_tasks: "utils/load_app.yml" include_tasks: utils/load_handlers.yml
vars: vars:
load_app_id: svc-prx-openresty handler_role_name: svc-prx-openresty
docker_compose_flush_handlers: false # Prevent deploy until initial Config is created
- name: Deploy OpenResty NGINX Base Configuration - name: Deploy OpenResty NGINX Base Configuration
template: template:
@@ -26,6 +25,11 @@
dest: "{{ NGINX.FILES.CONFIGURATION }}" dest: "{{ NGINX.FILES.CONFIGURATION }}"
notify: restart openresty notify: restart openresty
- name: Load OpenResty
include_tasks: "utils/load_app.yml"
vars:
load_app_id: svc-prx-openresty
- name: Flush OpenResty Base Setup - name: Flush OpenResty Base Setup
meta: flush_handlers meta: flush_handlers

View File

@@ -1,9 +1,3 @@
--- ---
- include_tasks: 01_core.yml - include_tasks: 01_core.yml
when: run_once_sys_svc_webserver_core is not defined when: run_once_sys_svc_webserver_core is not defined
- name: "Provide OpenResty Handlers for Webserver"
include_tasks: utils/load_handlers.yml
vars:
handler_role_name: svc-prx-openresty
when: run_once_sys_svc_webserver_core is defined