base: Add S.M.A.R.T disk monitoring to physical hosts
This commit is contained in:
parent
226c624328
commit
169750eb0e
1 changed files with 17 additions and 7 deletions
|
@ -37,6 +37,7 @@
|
|||
loop_control:
|
||||
loop_var: role
|
||||
|
||||
- block:
|
||||
- name: install roles for physical hardware
|
||||
include_role:
|
||||
name: "{{ role }}"
|
||||
|
@ -44,4 +45,13 @@
|
|||
- lm_sensors
|
||||
loop_control:
|
||||
loop_var: role
|
||||
- name: install smartmontools
|
||||
package:
|
||||
name: smartmontools
|
||||
state: installed
|
||||
- name: enable smartd
|
||||
service:
|
||||
name: smartd
|
||||
state: started
|
||||
enabled: true
|
||||
when: ansible_virtualization_role != "guest"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue