summaryrefslogtreecommitdiffstats
path: root/roles/diagnostics/templates/diskcheck.sh.j2
blob: 137dfdce218c21316b0c57680eca3d0ed92c433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/bash


{% if ansible_devices.sda is defined and ansible_devices.sda.removable == "0" %}
smartctl -t long /dev/sda
{% endif %}
{% if ansible_devices.sdb is defined and ansible_devices.sdb.removable == "0" %}
smartctl -t long /dev/sdb
{% endif %}
{% if ansible_devices.sdc is defined and ansible_devices.sdc.removable == "0" %}
smartctl -t long /dev/sdc
{% endif %}
{% if ansible_devices.sdd is defined and ansible_devices.sdd.removable == "0" %}
smartctl -t long /dev/sdd
{% endif %}