From 01f8d3e11fbd4894833274dbd9e63e966d3b1ecc Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Mon, 2 Dec 2024 10:53:06 +0100 Subject: [PATCH] EB: Run the container handler only when the docker task has not restarted it already --- roles/engineblock/handlers/main.yml | 1 + roles/engineblock/tasks/main.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/engineblock/handlers/main.yml b/roles/engineblock/handlers/main.yml index 6ab193b9f..562fae00c 100644 --- a/roles/engineblock/handlers/main.yml +++ b/roles/engineblock/handlers/main.yml @@ -4,3 +4,4 @@ name: engine state: started restart: true + when: ebcontainer is success and ebcontainer is not change diff --git a/roles/engineblock/tasks/main.yml b/roles/engineblock/tasks/main.yml index 2189ad4c2..226d2f815 100644 --- a/roles/engineblock/tasks/main.yml +++ b/roles/engineblock/tasks/main.yml @@ -196,7 +196,7 @@ APACHE_UID: "#{{ engine_uid.uid }}" APACHE_GUID: "#{{ engine_guid.gid }}" TZ: "{{ timezone }}" - PHP_MEMORY_LIMIT: "{{ engine_php_memory }}" + PHP_MEMORY_LIMIT: "{{ engine_php_memory }}" etc_hosts: host.docker.internal: host-gateway mounts: @@ -230,3 +230,4 @@ - source: engineblock_sessions target: /tmp/ type: volume + register: ebcontainer