14 lines
245 B
YAML
14 lines
245 B
YAML
|
|
---
|
||
|
|
- name: restart prometheus
|
||
|
|
systemd:
|
||
|
|
name: prometheus
|
||
|
|
state: restarted
|
||
|
|
daemon_reload: yes
|
||
|
|
become: yes
|
||
|
|
|
||
|
|
- name: reload prometheus
|
||
|
|
uri:
|
||
|
|
url: "http://localhost:{{ prometheus_port }}/-/reload"
|
||
|
|
method: POST
|
||
|
|
become: yes
|