Solved some handler reloading bugs

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-08 19:33:16 +02:00
parent 22c8c395f0
commit 8e0341c120
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# run_once_cmp_db_docker_proxy: 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"
include_role:
name: cmp-db-docker
@ -8,5 +12,5 @@
include_role:
name: srv-proxy-6-6-domain
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"

View File

@ -3,6 +3,10 @@
include_tasks: cleanup.yml
when: mode_cleanup | bool
- include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
vars:
handler_role_name: "svc-prx-openresty"
- name: "include role for {{ domain }} to receive certificates and do the modification routines"
include_role:
name: srv-web-7-6-composer
@ -18,7 +22,7 @@
uri:
url: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
register: site_check
failed_when: false
failed_when: false
changed_when: false
when: not nginx_conf.changed

View File

@ -26,6 +26,7 @@
when: run_once_svc_db_postgres is not defined
- include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
# Necessary because docker handlers are overwritten by condition
vars:
handler_role_name: "docker-compose"