[prometheus] Install prometheus-node-exporter-collectors on bullseye

Signed-off-by: ynerant <ynerant@crans.org>
certbot_on_virtu
ynerant 2021-02-17 15:46:25 +01:00
parent 99ed3ad57a
commit 61cf1eb892
1 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,17 @@
when:
- ansible_lsb.codename == 'stretch'
- name: Install Prometheus node-exporter-collectors (bullseye)
apt:
update_cache: true
name: prometheus-node-exporter-collectors
install_recommends: false
register: apt_result
retries: 3
until: apt_result is succeeded
when:
- ansible_lsb.codename == 'bullseye'
- name: Activate prometheus-node-exporter service
systemd:
name: prometheus-node-exporter