Enable Prometheus exporter on nodes by default

This commit is contained in:
2023-12-10 00:18:44 -05:00
parent 010ecefe16
commit 8bf3bbdeb1
3 changed files with 11 additions and 0 deletions

View File

@ -25,3 +25,5 @@ fail2ban_ignorelist:
- 10.0.0.0/8
cpu_governor: "ondemand"
enable_prometheus_exporter: yes

View File

@ -296,6 +296,12 @@
until: apt_res is success
tags: base-packages
- name: install Prometheus node exporter if enabled
apt:
name:
- prometheus-node-exporter
when: enable_prometheus_exporter is defined and enable_prometheus_exporter
- name: install Intel-specific microcode package
apt:
name: