ansible-edda/tasks/smart.yml

24 lines
442 B
YAML
Raw Normal View History

2022-09-11 20:55:30 +02:00
- name: Install smartmontools
apt:
name: smartmontools
- name: Smartd configuration
copy:
2022-09-21 23:57:15 +02:00
src: ./filesystem/yggdrasil/etc/smartd.conf
2022-09-11 20:55:30 +02:00
dest: /etc/smartd.conf
mode: 0644
register: smartd_conf
- name: Enable/start smartmontools
systemd:
name: smartmontools
enabled: yes
state: started
- name: Restart smartmontools
systemd:
name: smartmontools
state: restarted
when:
smartd_conf is changed