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"
|
- "{{ ansible_fqdn | default(ansible_host) | default('localhost') }}:61000"
|
||||||
|
|
||||||
prometheus_alert_rules_files:
|
prometheus_alert_rules_files:
|
||||||
- "prometheus/rules/*.rules"
|
- prometheus/rules/*.rules
|
||||||
|
|
||||||
prometheus_static_targets_files:
|
prometheus_static_targets_files:
|
||||||
- prometheus/targets/*.yml
|
- prometheus/targets/*.yml
|
||||||
|
@ -76,6 +76,9 @@
|
|||||||
group: "{{ prometheus_user }}"
|
group: "{{ prometheus_user }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
with_fileglob: "{{ prometheus_static_targets_files }}"
|
with_fileglob: "{{ prometheus_static_targets_files }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
|
notify: __prometheus_reload
|
||||||
|
|
||||||
- name: Configure prometheus alerting rules
|
- name: Configure prometheus alerting rules
|
||||||
template:
|
template:
|
||||||
@ -97,6 +100,8 @@
|
|||||||
mode: 0640
|
mode: 0640
|
||||||
validate: "{{ prometheus_base_dir }}/promtool check rules %s"
|
validate: "{{ prometheus_base_dir }}/promtool check rules %s"
|
||||||
with_fileglob: "{{ prometheus_alert_rules_files }}"
|
with_fileglob: "{{ prometheus_alert_rules_files }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
notify: __prometheus_reload
|
notify: __prometheus_reload
|
||||||
|
|
||||||
- name: Copy systemd unit file
|
- name: Copy systemd unit file
|
||||||
|
Loading…
Reference in New Issue
Block a user