mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 07:10:18 +00:00
542df947d5
Latest ansible-lint now requires notifiy pass casing test. * Remove obsolete `listen` in handlers. * Make single notify consistent. Signed-off-by: SuperQ <superq@gmail.com>
15 lines
326 B
YAML
15 lines
326 B
YAML
---
|
|
- name: Restart prometheus
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
name: prometheus
|
|
state: restarted
|
|
register: prometheus_restarted
|
|
|
|
- name: Reload prometheus
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: prometheus
|
|
state: reloaded
|
|
when: prometheus_restarted is not defined
|