]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Try wipefs without --force if flag is missing 324/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 11 Jul 2017 17:51:53 +0000 (13:51 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 11 Jul 2017 17:51:53 +0000 (13:51 -0400)
Fixes bug introduced in https://github.com/ceph/ceph-cm-ansible/pull/323

The version of wipefs shipped with Trusty lacks the --force flag

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

index d3ad034bae0ecc71b530c0fe4c4bd7eb2d184819..e4dca3f29b9c58629ec339742606311adf16437e 100644 (file)
@@ -15,8 +15,9 @@
   register: non_root_partitions
 
 ## http://tracker.ceph.com/issues/20533
+## Trusty version of wipefs lacks --force option
 - name: Wipe filesystems on non-root partitions
-  shell: "wipefs --force --all /dev/{{ item }}"
+  shell: "wipefs --force --all /dev/{{ item }} || wipefs --all /dev/{{ item }}"
   with_items: "{{ non_root_partitions.stdout_lines }}"
   when: non_root_partitions|length > 0