Add logrotate,iptables,snapper and smartd

This commit is contained in:
Daniel A. Maierhofer
2018-07-13 14:19:06 +02:00
parent 1a0adb219d
commit f58be4106c
10 changed files with 103 additions and 2 deletions

16
tasks/smartd.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- name: smartd - install smartmontools
package: name=smartmontools
- 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