]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Stop zapping loop devices 360/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 6 Dec 2017 18:51:12 +0000 (13:51 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 6 Dec 2017 18:51:53 +0000 (13:51 -0500)
Because it's a waste of time

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/zap_disks.yml

index 7ef967e2c54bf44c6586ce075ca0a49d53be8ede..5d280e6656fce17a6e4cbeb8a7039b438a4f768c 100644 (file)
@@ -50,7 +50,9 @@
 - name: Zap all non-root disks
   shell: "sgdisk --zap-all /dev/{{ item.key }} || sgdisk --zap-all /dev/{{ item.key }}"
   with_dict: "{{ ansible_devices }}"
-  when: item.key not in root_disk
+  when:
+    - item.key not in root_disk
+    - '"loop" not in item.key'
 
 - name: Remove all LVM data
   shell: "dmsetup remove_all --force"