ansible-collection-prometheus/roles/prometheus/handlers/main.yml
SuperQ 542df947d5
Fix: Update notify linting
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>
2024-05-15 09:54:03 +02:00

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