base: Add S.M.A.R.T disk monitoring to physical hosts

This commit is contained in:
Timo Makinen 2021-03-23 22:36:52 +00:00
parent 226c624328
commit 169750eb0e

View file

@ -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"