summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/node/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-10-15 18:24:52 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-10-15 18:24:52 +0200
commitd83c9a50fa29f51e3195929c62f4946cab8c50c5 (patch)
treeb8b8a01a4e1db5bbc6a0004315efeca2aabe0688 /roles/monitoring/prometheus/exporter/node/tasks/main.yml
parentfix group_vars precedence for accesspoints (diff)
prometheus: fix smartmon textfile collector
Diffstat (limited to 'roles/monitoring/prometheus/exporter/node/tasks/main.yml')
-rw-r--r--roles/monitoring/prometheus/exporter/node/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/tasks/main.yml b/roles/monitoring/prometheus/exporter/node/tasks/main.yml
index 2811c759..27bf3a4d 100644
--- a/roles/monitoring/prometheus/exporter/node/tasks/main.yml
+++ b/roles/monitoring/prometheus/exporter/node/tasks/main.yml
@@ -43,10 +43,10 @@
when: ansible_pkg_mgr == "apt"
vars:
textfile_collector_name: "apt"
- include_tasks: textfile_collector_script.yml
+ include_tasks: textfile_collector_generic.yml
- name: install all other textfile collector scripts
loop: "{{ prometheus_exporter_node_textfile_collector_scripts }}"
loop_control:
loop_var: textfile_collector_name
- include_tasks: textfile_collector_script.yml
+ include_tasks: "{{ q('first_found', ['textfile_collector_' + textfile_collector_name + '.yml', 'textfile_collector_generic.yml'] ) | first }}"