Only install libvirt exporter on Debian 11+
This commit is contained in:
parent
7c21763994
commit
d45bbad17a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue