From dc3bf4650246e0be5bc92a6f8f4add0801825f97 Mon Sep 17 00:00:00 2001 From: VC Date: Tue, 29 Oct 2024 09:11:50 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8:=20add=20smart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/nas.yml | 1 + roles/smart/tasks/main.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 roles/smart/tasks/main.yml diff --git a/playbooks/nas.yml b/playbooks/nas.yml index d235508..c57e945 100644 --- a/playbooks/nas.yml +++ b/playbooks/nas.yml @@ -6,3 +6,4 @@ roles: - zfs - nfs + - smart diff --git a/roles/smart/tasks/main.yml b/roles/smart/tasks/main.yml new file mode 100644 index 0000000..9608913 --- /dev/null +++ b/roles/smart/tasks/main.yml @@ -0,0 +1,13 @@ +--- + +- name: Install SMART + ansible.builtin.apt: + name: smartmontools + state: present + update_cache: true + +- name: Ensure smartd is enable & started + ansible.builtin.service: + name: smartd + enabled: true + state: started