diff options
Diffstat (limited to 'roles/diagnostics/templates/diskreport.sh.j2')
-rw-r--r-- | roles/diagnostics/templates/diskreport.sh.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/diagnostics/templates/diskreport.sh.j2 b/roles/diagnostics/templates/diskreport.sh.j2 new file mode 100644 index 0000000..e27f70e --- /dev/null +++ b/roles/diagnostics/templates/diskreport.sh.j2 @@ -0,0 +1,15 @@ +#!/usr/bin/bash + + +{% if ansible_devices.sda is defined and ansible_devices.sda.removable == "0" %} +smartctl -HAl error /dev/sda +{% endif %} +{% if ansible_devices.sdb is defined and ansible_devices.sdb.removable == "0" %} +smartctl -HAl error /dev/sdb +{% endif %} +{% if ansible_devices.sdc is defined and ansible_devices.sdc.removable == "0" %} +smartctl -HAl error /dev/sdc +{% endif %} +{% if ansible_devices.sdd is defined and ansible_devices.sdd.removable == "0" %} +smartctl -HAl error /dev/sdd +{% endif %} |