From 90c3938188cbb621bfc39f8b917418f61697037c Mon Sep 17 00:00:00 2001 From: Nicolas ROSELIER Date: Thu, 13 Dec 2018 17:28:41 +0100 Subject: [PATCH] Fix do not stop/start consul when consul disabled --- deployment/ansible-vitam-exploitation/start_vitam.yml | 2 +- deployment/ansible-vitam-exploitation/stop_vitam.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/ansible-vitam-exploitation/start_vitam.yml b/deployment/ansible-vitam-exploitation/start_vitam.yml index a21ee36e21..c1307b6277 100644 --- a/deployment/ansible-vitam-exploitation/start_vitam.yml +++ b/deployment/ansible-vitam-exploitation/start_vitam.yml @@ -20,7 +20,7 @@ any_errors_fatal: true serial: 1 roles: - - service + - { role: service, when: consul_disabled is not defined or consul_disabled |lower != 'true' } vars: state: "{% if 'consul' not in vitam_secondary_site_components and primary_site| lower == 'false' %}stopped{% else %}started{% endif %}" name: vitam-consul diff --git a/deployment/ansible-vitam-exploitation/stop_vitam.yml b/deployment/ansible-vitam-exploitation/stop_vitam.yml index 6c2b52c6f8..658100bad7 100644 --- a/deployment/ansible-vitam-exploitation/stop_vitam.yml +++ b/deployment/ansible-vitam-exploitation/stop_vitam.yml @@ -285,7 +285,7 @@ # consul stop - hosts: vitam roles: - - service + - { role: service, when: consul_disabled is not defined or consul_disabled |lower != 'true' } vars: state: stopped name: vitam-consul