From ac8282a00e140c104f54db42fde861163d9dfc54 Mon Sep 17 00:00:00 2001 From: MajorP93 Date: Thu, 5 Dec 2024 15:58:35 +0100 Subject: [PATCH] fix: use with_fileglob for iterating over custom alerting rule files Signed-off-by: MajorP93 --- roles/prometheus/tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/tasks/configure.yml b/roles/prometheus/tasks/configure.yml index e374664c3..e63ac21b9 100644 --- a/roles/prometheus/tasks/configure.yml +++ b/roles/prometheus/tasks/configure.yml @@ -93,7 +93,7 @@ group: "{{ prometheus_system_group }}" mode: 0640 validate: "{{ prometheus_binary_install_dir }}/promtool check rules %s" - loop: "{{ prometheus_alert_rules_files | map('ansible.builtin.fileglob') | flatten }}" + with_fileglob: "{{ prometheus_alert_rules_files }}" when: - not prometheus_agent_mode notify: