From: David Galloway Date: Tue, 11 Jul 2017 17:51:53 +0000 (-0400) Subject: testnode: Try wipefs without --force if flag is missing X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5474a4f2b1e6a5169ef7296de80e924e662541b;p=ceph-cm-ansible.git testnode: Try wipefs without --force if flag is missing 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 --- diff --git a/roles/testnode/tasks/zap_disks.yml b/roles/testnode/tasks/zap_disks.yml index d3ad034b..e4dca3f2 100644 --- a/roles/testnode/tasks/zap_disks.yml +++ b/roles/testnode/tasks/zap_disks.yml @@ -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