smartd.yml 619 B

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