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>
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