Skip to content
Snippets Groups Projects
Commit 0ac990b4 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

node_exporter: Handle split of extra collectors in bullseye

parent 0eb94b09
No related branches found
No related tags found
No related merge requests found
---
node_exporter_args: ""
force_smartmontools_on_vm_guest: false
......@@ -19,6 +19,26 @@
- prometheus
- prometheus-exporter
- name: Install additional node_exporter collectors
apt:
name: prometheus-node-exporter-collectors
state: present
when: ansible_distribution_major_version|int >= 11
tags:
- prometheus
- prometheus-exporter
- name: Ensure smartmontools is present only on bare-metal hosts
apt:
name: smartmontools
state: >-
{% if force_smartmontools_on_vm_guest or (ansible_virtualization_role is defined
and not ansible_virtualization_role == "guest") -%}
present
{%- else -%}
absent
{%- endif %}
- name: Configure node_exporter
template:
src: prometheus-node-exporter.j2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment