Skip to content

Commit af8b458

Browse files
committed
fix: change reload logic
1 parent ea3b341 commit af8b458

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/prometheus/handlers

1 file changed

+1
-1
lines changed

ansible/roles/prometheus/handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
service_name: "prometheus"
1919
service: "{{ prometheus_services[service_name] }}"
2020
ansible.builtin.uri:
21-
url: http://{{ prometheus_vip_address if prometheus_vip_address is defined and prometheus_vip_address != "" else api_interface_address }}:{{ prometheus_port }}/-/reload
21+
url: http://{{ prometheus_vip_address if prometheus_vip_address is defined and prometheus_vip_address != "" and prometheus_active_passive_mode | bool else api_interface_address }}:{{ prometheus_port }}/-/reload
2222
method: PUT
2323
use_proxy: false
2424
register: result

0 commit comments

Comments
 (0)