mg
d2c425f014
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#252 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
36 lines
935 B
YAML
36 lines
935 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
|
|
|
|
- name: copy smart_status.sh
|
|
become: yes
|
|
ansible.builtin.template:
|
|
src: "smart_status.sh"
|
|
dest: "/usr/local/bin/smart_status.sh"
|
|
owner: "{{ smart_user }}"
|
|
group: "{{ smart_user_group }}"
|
|
mode: 0744
|