smartd.yml 522 B

123456789101112131415
  1. - name: Install smartmontools package
  2. apt: pkg=smartmontools state=installed
  3. - name: Install smartd configuration
  4. template: src=smartd/smartd.conf.j2 dest=/etc/smartd.conf owner=root group=root mode=0644
  5. notify:
  6. - Restart smartmontools
  7. - name: Update smartmontools default/init parameters
  8. template: src=smartd/default.j2 dest=/etc/default/smartmontools owner=root group=root mode=0644
  9. notify:
  10. - Restart smartmontools
  11. - name: Ensure smartmontools is running
  12. service: name=smartmontools state=started