]> 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)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 6 Aug 2020 16:04:51 +0000 (12:04 -0400)
commit8e5d1159e0a5f36f6758b5b09cc3ee0deaeff6a4
tree612b863789f63b9ebe9cb5458c4d8056139c224b
parent102e0337b509b3b0ed012d3224927537853e77ca
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>
(cherry picked from commit a57fd7a0900e5c3d04e8b6c997c819d340565967)
infrastructure-playbooks/purge-cluster.yml