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>
This commit is contained in:
parent
ccaaabc1be
commit
7a24089031
758 changed files with 7244 additions and 24264 deletions
29
roles/mgrote_smart/tasks/main.yml
Normal file
29
roles/mgrote_smart/tasks/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue