mg
2a5d9a8dea
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>
27 lines
696 B
YAML
27 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
|