Add smartctl_exporter role

This commit is contained in:
2026-07-22 04:28:20 -04:00
parent 1feb8f77cb
commit b3fdf181a1
+21
View File
@@ -0,0 +1,21 @@
---
- 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