commit 90d612880113c4cca320dc1bf64ca0ec9c66fc2b
parent a2a1038754a5dadc7e8ba5f4cb93ebb6f06a5e28
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 13 Feb 2025 16:02:57 +0100
must update caches after adding grafana repo
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/roles/monitoring/tasks/main.yml b/roles/monitoring/tasks/main.yml
@@ -21,6 +21,15 @@
architectures: amd64
signed_by: /etc/apt/keyrings/grafana.gpg
+- name: Update caches
+ apt:
+ state: latest
+ update_cache: true
+ autoclean: true
+ autoremove: true
+ upgrade: safe
+ when: ansible_os_family == 'Debian'
+
- name: Stop log export service before update or reconfiguration
service:
name: alloy.service