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_control:
loop_var: role loop_var: role
- name: install roles for physical hardware - block:
include_role: - name: install roles for physical hardware
name: "{{ role }}" include_role:
with_items: name: "{{ role }}"
- lm_sensors with_items:
loop_control: - lm_sensors
loop_var: role 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" when: ansible_virtualization_role != "guest"