chore: add loop control to fileglob loops
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-06-03 21:56:53 +02:00
parent eeacf9a0dd
commit 3e27157df2
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,7 @@ prometheus_scrape_configs:
- "{{ ansible_fqdn | default(ansible_host) | default('localhost') }}:61000"
prometheus_alert_rules_files:
- "prometheus/rules/*.rules"
- prometheus/rules/*.rules
prometheus_static_targets_files:
- prometheus/targets/*.yml

View File

@ -76,6 +76,9 @@
group: "{{ prometheus_user }}"
mode: 0640
with_fileglob: "{{ prometheus_static_targets_files }}"
loop_control:
label: "{{ item | basename }}"
notify: __prometheus_reload
- name: Configure prometheus alerting rules
template:
@ -97,6 +100,8 @@
mode: 0640
validate: "{{ prometheus_base_dir }}/promtool check rules %s"
with_fileglob: "{{ prometheus_alert_rules_files }}"
loop_control:
label: "{{ item | basename }}"
notify: __prometheus_reload
- name: Copy systemd unit file