Skip to content

Commit

Permalink
fix: use with_fileglob for iterating over custom alerting rule files
Browse files Browse the repository at this point in the history
Signed-off-by: MajorP93 <[email protected]>
  • Loading branch information
MajorP93 authored Dec 5, 2024
1 parent 5df0df6 commit ac8282a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/prometheus/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac8282a

Please sign in to comment.