Add smartctl_exporter role
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user