summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/smart.yml
blob: b24b302f0137b1bb77d54c24e1a0b2f1d08e57c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- name: Install smartmontools
  # XXX apt-listbugs complains due to #706909.
  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