I've seen `sgdisk -Z` fail the first time on RMA replacement drives from HGST but succeed on re-running it.
@alfredodeza recommended we add a retry. Can't hurt.
Signed-off-by: David Galloway <dgallowa@redhat.com>
with_items: "{{ non_root_partitions.stdout_lines }}"
when: non_root_partitions|length > 0
+## See https://github.com/ceph/ceph-ansible/issues/759#issue-153248281
- name: Zap all non-root disks
- command: sgdisk --zap-all "/dev/{{ item.key }}"
+ shell: "sgdisk --zap-all /dev/{{ item.key }} || sgdisk --zap-all /dev/{{ item.key }}"
with_dict: "{{ ansible_devices }}"
when: item.key not in root_disk