infrastructure/roles/monitoring/handlers/main.yml
Saibotk 693184bd7c
refactor!(monitoring): Replace monitoring with monitoring_ng
Not much changed regarding variable names, only the role name changed.
2024-08-14 02:04:32 +02:00

47 lines
1.3 KiB
YAML

- name: Apply new SELinux file context to filesystem.
ansible.builtin.command: "restorecon -irF {{ monitoring_install_dir }}"
become: true
changed_when: true
listen: "monitoring selinux context changed"
- name: Restart grafana
ansible.builtin.systemd:
state: restarted
daemon_reload: true
name: grafana.service
listen:
- "grafana config changed"
- "grafana container definition changed"
- "grafana datasources changed"
- "grafana alert provisioning changed"
- "monitoring selinux context changed"
- name: Restart grafana image renderer
ansible.builtin.systemd:
state: restarted
daemon_reload: true
name: image-renderer.service
listen:
- "image-renderer config changed"
- "image-renderer container definition changed"
- "monitoring selinux context changed"
- name: Restart loki
ansible.builtin.systemd:
state: restarted
daemon_reload: true
name: loki.service
listen:
- "loki config changed"
- "loki container definition changed"
- "monitoring selinux context changed"
- name: Restart prometheus
ansible.builtin.systemd:
state: restarted
daemon_reload: true
name: prometheus.service
listen:
- "prometheus config changed"
- "prometheus container definition changed"
- "monitoring selinux context changed"