Parcourir la source

cleanup snapraid smart test script devices

Blaine Story il y a 3 ans
Parent
commit
c7f5775ee0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 %}