Only install libvirt exporter on Debian 11+

This commit is contained in:
Joshua Boniface 2023-12-27 13:57:21 -05:00
parent 7c21763994
commit d45bbad17a
1 changed files with 2 additions and 2 deletions

View File

@ -14,14 +14,14 @@
retries: 5
until: apt_res is success
- name: install Prometheus libvirt exporter if enabled
- name: install Prometheus libvirt exporter if enabled (Debian 11+)
apt:
name:
- prometheus-libvirt-exporter
register: apt_res
retries: 5
until: apt_res is success
when: enable_prometheus_exporters is defined and enable_prometheus_exporters
when: enable_prometheus_exporters is defined and enable_prometheus_exporters and debian_version|int >= 11
- name: add libvirt user to ceph group
user: