homeserver/roles/mgrote_smart/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

29 lines
703 B
YAML

---
- name: include user tasks
ansible.builtin.include_tasks: user.yml
- name: ensure smartmontools are installed
become: true
ansible.builtin.package:
name: smartmontools
state: present
- name: template smartmontools config
become: true
ansible.builtin.template:
src: "smartmontools"
dest: "/etc/default/smartmontools"
owner: "{{ smart_user }}"
group: "{{ smart_user_group }}"
mode: "0644"
notify: restart smartmontools
- name: template smartd.conf
become: true
ansible.builtin.template:
src: "smartd.conf"
dest: "/etc/smartd.conf"
owner: "{{ smart_user }}"
group: "{{ smart_user_group }}"
mode: "0644"
notify: restart smartmontools