Explorar el Código

cleanup snapraid smart test script devices

Blaine Story hace 3 años
padre
commit
c7f5775ee0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      roles/snapraid/templates/smarttest.sh.j2

+ 2 - 2
roles/snapraid/templates/smarttest.sh.j2

@@ -1,8 +1,8 @@
 #!/bin/bash
 # {{ ansible_managed }}
 
-{% for dev in ansible_devices.keys() %}
-{% if dev != "sda" %}
+{% for dev in ansible_devices.keys() | sort %}
+{% if dev != "sda" and dev != "sr0" and "dm" not in dev %}
 /usr/sbin/smartctl --test=long /dev/{{ dev }}
 {% endif %}
 {% endfor %}