]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge-cluster: check if rbdmap exists
authorBenoît Knecht <bknecht@protonmail.ch>
Fri, 31 Jul 2020 06:11:31 +0000 (08:11 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Aug 2020 07:35:03 +0000 (09:35 +0200)
commita57fd7a0900e5c3d04e8b6c997c819d340565967
tree7b7d0ebf4a59667461782c927f60f56078ddddf1
parent03d46202691514639ff10666a488169bf8b4d150
purge-cluster: check if rbdmap exists

When running `infrastructure-playbooks/purge-cluster.yml` twice, it fails the
second time on the `ensure rbd devices are unmapped` task, because `rbdmap`
isn't installed anymore at that point.

This commit adds a check that ensures `rbdmap` is available, and skips the
`ensure rbd devices are unmapped` task if it isn't.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
infrastructure-playbooks/purge-cluster.yml