Optimized docker compose flush logic

This commit is contained in:
2025-12-04 04:16:17 +01:00
parent c128bd9c73
commit 845b6e7cc1
3 changed files with 4 additions and 6 deletions

View File

@@ -24,6 +24,3 @@
include_tasks: "utils/up.yml"
when: docker_compose_file_creation_enabled | bool
- name: "flush docker compose for '{{ application_id }}'"
meta: flush_handlers
when: docker_compose_flush_handlers | bool

View File

@@ -1,9 +1,9 @@
- name: Include docker to setup docker
- name: Load Docker
include_role:
name: sys-svc-docker
when: run_once_sys_svc_docker is not defined
- name: create docker network for Ollama, so that other applications can access it
- name: Create docker network
community.docker.docker_network:
name: "{{ docker_network_name }}"
state: present

View File

@@ -23,4 +23,5 @@
notify: docker compose up
- name: "Flush Docker Compose Up Handlers for {{ docker_compose.directories.instance }}"
meta: flush_handlers
meta: flush_handlers
when: docker_compose_flush_handlers | bool