aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 10f54f7..ecffd79 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,11 +1,16 @@
---
-- name: Process all exporters
+- 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: