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,11 +37,21 @@
|
|||
loop_control:
|
||||
loop_var: role
|
||||
|
||||
- name: install roles for physical hardware
|
||||
include_role:
|
||||
name: "{{ role }}"
|
||||
with_items:
|
||||
- lm_sensors
|
||||
loop_control:
|
||||
loop_var: role
|
||||
- block:
|
||||
- name: install roles for physical hardware
|
||||
include_role:
|
||||
name: "{{ role }}"
|
||||
with_items:
|
||||
- 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
Reference in a new issue