chore: add loop control to fileglob loops
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
eeacf9a0dd
commit
3e27157df2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user