123456789101112131415161718192021222324252627282930313233343536373839 |
- - name: 'Install smartmontools package'
- apt:
- pkg: 'smartmontools'
- state: 'present'
- tags:
- - 'smartd'
- - name: 'Install smartd configuration'
- template:
- src: 'smartd/smartd.conf.j2'
- dest: '/etc/smartd.conf'
- owner: 'root'
- group: 'root'
- mode: '0644'
- notify:
- - 'Restart smartmontools'
- tags:
- - 'smartd'
- - name: 'Update smartmontools default/init parameters'
- template:
- src: 'smartd/default.j2'
- dest: '/etc/default/smartmontools'
- owner: 'root'
- group: 'root'
- mode: '0644'
- notify:
- - 'Restart smartmontools'
- tags:
- - 'smartd'
- - name: 'Ensure smartmontools is running'
- service:
- name: 'smartmontools'
- state: 'started'
- tags:
- - 'smartd'
- # vim: ft=yaml.ansible
|