fix: only reload consul if the service is set to be started

This commit is contained in:
Bertrand Lanson 2024-11-10 14:40:04 +01:00
parent fab9125651
commit fe886edd5f
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

@ -55,5 +55,6 @@
state: reloaded state: reloaded
throttle: 1 throttle: 1
when: when:
- consul_start_service
- _consul_service_need_reload - _consul_service_need_reload
- not _consul_service_need_restart - not _consul_service_need_restart