Add smartd

This commit is contained in:
Daniel A. Maierhofer
2018-03-17 14:18:49 +01:00
parent 15eaf1b443
commit a983059a41
5 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
---
- name: smartd - /etc/default/smartmontools
replace:
path: /etc/default/smartmontools
regexp: "^#start_smartd=.*"
replace: "start_smartd=yes"
notify: restart smartd
- name: smartd - /etc/smartd.conf
copy:
dest: /etc/smartd.conf
content: "DEVICESCAN -a -d nvme -d sat -o on -s (S/../.././01) -n standby -R 5 -I 9 -R 194 -m root -M exec /usr/share/smartmontools/smartd-runner\n"
notify: restart smartd