]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-handler: remove tempdir when all handlers are done
authorSeena Fallah <seenafallah@gmail.com>
Fri, 16 Feb 2024 10:30:07 +0000 (11:30 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 7 Mar 2024 20:03:33 +0000 (21:03 +0100)
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
roles/ceph-handler/handlers/main.yml

index a806235eba7ec4a1a0cce9956633b8bb477f92ae..d634b9dd87c230724254ba19ffe629b8c19de18d 100644 (file)
         - "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