diff --git a/ansible/roles/apps/tasks/init.yml b/ansible/roles/apps/tasks/init.yml deleted file mode 100644 index 27d1cf0b95cd489d341f730a95f82cae0ee3310a..0000000000000000000000000000000000000000 --- 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 643ff91496fd0ec8c8a804e56c19bbfe5bf6ed97..0fd5c86d458da92c5bfb5383823a0b0e93cee5c1 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