diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 1c615de37..a428361ed 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -88,8 +88,15 @@ - name: ensure cephfs mountpoint(s) are unmounted command: umount -a -t ceph + - name: check if rbdmap is still installed + command: command -v rbdmap + register: command_rbdmap + failed_when: false + changed_when: false + - name: ensure rbd devices are unmapped command: rbdmap unmap-all + when: command_rbdmap.rc == 0 - name: unload ceph kernel modules modprobe: