homeserver/roles/mgrote.smart/tasks/main.yml
mg 2a5d9a8dea script: smart-status.sh entfernt (#257)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#257
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-11-28 10:49:09 +01:00

28 lines
696 B
YAML

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