summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/smart.yml
blob: 8d35d9f201cdb92eceb58697215ca07db8173c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- name: Install smartmontools
  apt: pkg=smartmontools

- name: Auto-enable smartmontools
  lineinfile: dest=/etc/default/smartmontools
              regexp='^(\s*#)?\s*start_smartd='
              line='start_smartd=yes'
              owner=root group=root
              mode=0644

- name: Start smartd
  service: name=smartmontools state=started