From df6cf9aa5156f5155e0e4c369e678b18fc5c0bcb Mon Sep 17 00:00:00 2001 From: Sascha Marcel Schmidt Date: Wed, 5 Sep 2018 17:18:53 +0200 Subject: [PATCH] add cleanup --- .../network-storage/heketi/roles/provision/tasks/cleanup.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 contrib/network-storage/heketi/roles/provision/tasks/cleanup.yml diff --git a/contrib/network-storage/heketi/roles/provision/tasks/cleanup.yml b/contrib/network-storage/heketi/roles/provision/tasks/cleanup.yml new file mode 100644 index 000000000..238f29bc2 --- /dev/null +++ b/contrib/network-storage/heketi/roles/provision/tasks/cleanup.yml @@ -0,0 +1,4 @@ +--- +- name: "Clean up left over jobs." + command: "{{ bin_dir }}/kubectl delete jobs,pods --selector=\"deploy-heketi\"" + changed_when: false