Skip to content
Snippets Groups Projects
Verified Commit 8c4abfb3 authored by Arie Peterson's avatar Arie Peterson
Browse files

Remove ansible tasks for removing failed helm releases

parent 5236c9b1
No related branches found
No related tags found
No related merge requests found
---
- 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 != ""
--- ---
- name: Import tasks from init.yml
import_tasks: init.yml
- name: Install flux - name: Install flux
import_tasks: flux.yml import_tasks: flux.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment