Skip to content

Commit

Permalink
Fix do not stop/start consul when consul disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nroselier committed Dec 13, 2018
1 parent 05e686c commit 90c3938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/ansible-vitam-exploitation/start_vitam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/ansible-vitam-exploitation/stop_vitam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90c3938

Please sign in to comment.