Optimized flush order to solve yourls oauth2 proxy bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-13 01:03:31 +02:00
parent 13d8663796
commit 53770f5308
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,8 @@
- name: "For '{{ application_id }}': Load docker-compose" - name: "For '{{ application_id }}': Load docker-compose"
include_role: include_role:
name: docker-compose name: docker-compose
vars:
docker_compose_flush_handlers: false
- block: - block:
- name: "set oauth2_proxy_application_id (Needed due to lazzy loading issue)" - name: "set oauth2_proxy_application_id (Needed due to lazzy loading issue)"
@ -11,3 +13,7 @@
- name: "include the web-app-oauth2-proxy role {{domain}}" - name: "include the web-app-oauth2-proxy role {{domain}}"
include_tasks: "{{ playbook_dir }}/roles/web-app-oauth2-proxy/tasks/main.yml" include_tasks: "{{ playbook_dir }}/roles/web-app-oauth2-proxy/tasks/main.yml"
when: applications | get_app_conf(application_id, 'features.oauth2', False) when: applications | get_app_conf(application_id, 'features.oauth2', False)
- name: "flush docker compose and oauth2 proxy for '{{ application_id }}'"
meta: flush_handlers
when: docker_compose_flush_handlers | bool

View File

@ -32,6 +32,6 @@
include_tasks: "04_ensure_up.yml" include_tasks: "04_ensure_up.yml"
when: not docker_compose_skipp_file_creation | bool when: not docker_compose_skipp_file_creation | bool
- name: "flush database, docker and proxy for '{{ application_id }}'" - name: "flush docker compose for '{{ application_id }}'"
meta: flush_handlers meta: flush_handlers
when: docker_compose_flush_handlers | bool when: docker_compose_flush_handlers | bool