fix(grafana): restart service after package install/upgrade

This commit is contained in:
Clément Désiles
2026-09-29 12:27:13 +02:00
parent 86ad271b23
commit 0d26a6c64a
+2
View File
@@ -53,6 +53,7 @@
state: present state: present
update_cache: true update_cache: true
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
notify: Restart grafana
# Arch Linux installation # Arch Linux installation
- name: Install Grafana package (Arch Linux) - name: Install Grafana package (Arch Linux)
@@ -60,6 +61,7 @@
name: "{{ grafana_package }}" name: "{{ grafana_package }}"
state: present state: present
when: ansible_facts['os_family'] == 'Archlinux' when: ansible_facts['os_family'] == 'Archlinux'
notify: Restart grafana
# Database setup # Database setup
- name: Create PostgreSQL database - name: Create PostgreSQL database