47 lines
1.3 KiB
YAML
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"
|