Files
ansible/roles/smartctl_exporter/tasks/main.yaml
T
2026-07-22 04:28:20 -04:00

22 lines
519 B
YAML

---
- name: Install smartctl_exporter (Debian)
ansible.builtin.apt:
name: prometheus-smartctl-exporter
state: present
when: ansible_os_family == "Debian"
become: true
- name: Install smartctl_exporter (Arch)
aur:
name: prometheus-smartctl-exporter-bin
use: pikaur
state: present
when: ansible_os_family == "Archlinux"
- name: Enable and start smartctl_exporter service
ansible.builtin.systemd:
name: prometheus-smartctl-exporter
state: started
enabled: true
become: true