ceph-handler: Fix check mode
authorBenoît Knecht <bknecht@protonmail.ch>
Thu, 30 Dec 2021 14:08:08 +0000 (15:08 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Jan 2022 09:46:55 +0000 (10:46 +0100)
commitbffca06837e01ecbbb039c94a7059ed277e4b10e
treeea5eafd3ee4be61795e24732fbc9b571cfb8c183
parent3f923d69acf6c26c4e49ee86f8dd96d2dd509f31
ceph-handler: Fix check mode

When running in check mode with one or more Ceph daemons that need to be
restarted, the `tmpdirpath.path` variable that several handlers rely on is
undefined, leading to fatal errors.

This commit ensures the tasks that require `tmpdirpath.path` are skipped when
it's undefined.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
roles/ceph-handler/handlers/main.yml
roles/ceph-handler/tasks/handler_mdss.yml
roles/ceph-handler/tasks/handler_mgrs.yml
roles/ceph-handler/tasks/handler_mons.yml
roles/ceph-handler/tasks/handler_nfss.yml
roles/ceph-handler/tasks/handler_osds.yml
roles/ceph-handler/tasks/handler_rbdmirrors.yml
roles/ceph-handler/tasks/handler_rgws.yml