From: Seena Fallah Date: Fri, 16 Feb 2024 10:30:07 +0000 (+0100) Subject: ceph-handler: remove tempdir when all handlers are done X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29b64ec9742dcf9e8f6d12f247e65bfe52a92568;p=ceph-ansible.git ceph-handler: remove tempdir when all handlers are done Signed-off-by: Seena Fallah --- diff --git a/roles/ceph-handler/handlers/main.yml b/roles/ceph-handler/handlers/main.yml index a806235eb..d634b9dd8 100644 --- a/roles/ceph-handler/handlers/main.yml +++ b/roles/ceph-handler/handlers/main.yml @@ -78,4 +78,13 @@ - "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