ansible/roles/prometheus_node/tasks/main.yml
2023-04-01 22:32:42 +02:00

20 lines
445 B
YAML

---
- name: Install prometheus-node-exporter
apt:
name:
- prometheus-node-exporter
- prometheus-node-exporter-collectors
install_recommends: false # Do not install smartmontools
- name: Install smartmontools
apt:
name: smartmontools
when:
- "ansible_virtualization_role == 'host'"
- name: Enable prometheus-node-exporter
systemd:
name: prometheus-node-exporter
enabled: true
state: started
...