aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index f8d6caa..5a184f8 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,11 +1,13 @@
---
-- name: Select strategy
+- name: Process all exporters
ansible.builtin.include_tasks:
- file: '{{ prometheus_target_strategy }}.yml'
- vars:
- changed: false
+ file: process_exporter.yml
+ loop: '{{ prometheus_target_exporter +
+ ([] if prometheus_target_skip_default_exporters else prometheus_target_default_exporters) }}'
+ loop_control:
+ loop_var: item
- name: Run handlers
ansible.builtin.include_tasks:
file: handlers.yml
- when: changed
+ when: changed | default(false)