From fe886edd5f37dbc1540931c1b600d3fc09cdabed Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 10 Nov 2024 14:40:04 +0100 Subject: [PATCH] fix: only reload consul if the service is set to be started --- roles/consul/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/consul/tasks/main.yml b/roles/consul/tasks/main.yml index 2778a41..ddc9138 100644 --- a/roles/consul/tasks/main.yml +++ b/roles/consul/tasks/main.yml @@ -55,5 +55,6 @@ state: reloaded throttle: 1 when: + - consul_start_service - _consul_service_need_reload - not _consul_service_need_restart