From 2b711f760113c5930d8b487b49d115749cb143ff Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Fri, 16 Feb 2024 11:30:07 +0100 Subject: [PATCH] ceph-handler: remove tempdir when all handlers are done Signed-off-by: Seena Fallah --- roles/ceph-handler/handlers/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/roles/ceph-handler/handlers/main.yml b/roles/ceph-handler/handlers/main.yml index dd3ef2963..64914bafe 100644 --- a/roles/ceph-handler/handlers/main.yml +++ b/roles/ceph-handler/handlers/main.yml @@ -88,4 +88,16 @@ - "restart ceph rbdmirrors" - "restart ceph mgrs" register: tmpdirpath - when: tmpdirpath.path is defined + when: + - tmpdirpath.path is defined + - not _crash_handler_called | default(false) | bool + - not _mds_handler_called | default(false) | bool + - not _mgr_handler_called | default(false) | bool + - not _mon_handler_called | default(false) | bool + - not _nfs_handler_called | default(false) | bool + - not _osd_handler_called | default(false) | bool + - not _rbdmirror_handler_called | default(false) | bool + - not _rgw_handler_called | default(false) | bool + - not _rbd_target_api_handler_called | default(false) | bool + - not _tcmu_runner_handler_called | default(false) | bool + - not _rbd_target_gw_handler_called | default(false) | bool