From 151db3310883dfe3c06a442a9a238ac7c3378909 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Wed, 7 Sep 2022 13:41:06 +0000 Subject: [PATCH] Remove all plugin registries --- .../commission/storage-cleanup-csi-rook-ceph.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/kiss/tasks/commission/storage-cleanup-csi-rook-ceph.yaml b/templates/kiss/tasks/commission/storage-cleanup-csi-rook-ceph.yaml index de0231fd..bfbcc4ca 100644 --- a/templates/kiss/tasks/commission/storage-cleanup-csi-rook-ceph.yaml +++ b/templates/kiss/tasks/commission/storage-cleanup-csi-rook-ceph.yaml @@ -13,3 +13,17 @@ state: absent force: true with_items: "{{ results.files }}" + +- name: List all plugin registries + find: + paths: + - /var/lib/kubelet/plugins_registry/ + pattern: rook-ceph.* + register: results + +- name: Remove plugin registries + file: + path: "{{ item.path }}" + state: absent + force: true + with_items: "{{ results.files }}"