Explorar o código

cleanup snapraid smart test script devices

Blaine Story %!s(int64=3) %!d(string=hai) anos
pai
achega
c7f5775ee0
Modificáronse 1 ficheiros con 2 adicións e 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 %}