From 8c4abfb3755b9b07cbe44cf55f7e44e3c86272a5 Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Tue, 17 Dec 2019 13:57:25 +0100
Subject: [PATCH] Remove ansible tasks for removing failed helm releases

---
 ansible/roles/apps/tasks/init.yml | 27 ---------------------------
 ansible/roles/apps/tasks/main.yml |  3 ---
 2 files changed, 30 deletions(-)
 delete mode 100644 ansible/roles/apps/tasks/init.yml

diff --git a/ansible/roles/apps/tasks/init.yml b/ansible/roles/apps/tasks/init.yml
deleted file mode 100644
index 27d1cf0b9..000000000
--- a/ansible/roles/apps/tasks/init.yml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-
-- name: Check if there are failed helm deployments
-  tags:
-    - helm
-    - prometheus
-    - nginx
-    - nextcloud
-    - onlyoffice
-    - local-storage
-    - cert-manager
-  command: 'helm ls --failed --short'
-  failed_when: false
-  register: helm_failed_deployments
-  changed_when: false
-
-- name: Remove failed helm deployments
-  tags:
-    - helm
-    - prometheus
-    - nginx
-    - nextcloud
-    - onlyoffice
-    - local-storage
-    - cert-manager
-  shell: 'helm ls --failed --short | xargs -L1 helm delete --purge'
-  when: helm_failed_deployments.stdout != ""
diff --git a/ansible/roles/apps/tasks/main.yml b/ansible/roles/apps/tasks/main.yml
index 643ff9149..0fd5c86d4 100644
--- a/ansible/roles/apps/tasks/main.yml
+++ b/ansible/roles/apps/tasks/main.yml
@@ -1,8 +1,5 @@
 ---
 
-- name: Import tasks from init.yml
-  import_tasks: init.yml
-
 - name: Install flux
   import_tasks: flux.yml
 
-- 
GitLab