diff --git a/purge-cluster.yml b/purge-cluster.yml index 5848d4a9f..dbdb1e437 100644 --- a/purge-cluster.yml +++ b/purge-cluster.yml @@ -12,21 +12,27 @@ tasks: - - name: Purge Ceph + - name: disk zap + command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }} + with_items: devices + ignore_errors: true + + - name: disk zap + command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }} + with_items: devices + ignore_errors: true + + - name: call partprobe + command: partprobe + + - name: purge ceph command: ceph-deploy purge {{ ansible_fqdn }} delegate_to: 127.0.0.1 - - name: Remove OSD data + - name: remove osd data shell: rm -rf /var/lib/ceph/osd/*/* ignore_errors: true - - name: Purge remaining data + - name: purge remaining data command: ceph-deploy purgedata {{ ansible_fqdn }} delegate_to: 127.0.0.1 - - - name: Purge partitions - shell: parted -s {{ item[0] }} rm {{ item[1] }} - with_nested: - - devices - - partitions - ignore_errors: true