blob: ecffd798ed68640060eceddae615970bd8b4c809 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: Process YAML exporters
ansible.builtin.include_tasks: strategy_yaml.yml
when: prometheus_target_strategy == "yaml"
- name: Process all lineinfile exporters
ansible.builtin.include_tasks:
file: process_exporter.yml
loop: "{{ prometheus_target_exporter +
([] if prometheus_target_skip_default_exporters else prometheus_target_default_exporters) }}"
loop_control:
loop_var: item
when: prometheus_target_strategy != "yaml"
- name: Run handlers
ansible.builtin.include_tasks:
file: handlers.yml
when: changed | default(false)
|