Skip to content
Snippets Groups Projects
Verified Commit 99cb41f7 authored by Varac's avatar Varac
Browse files

Tag needed ansible tasks with app lables

parent 683253fe
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,12 @@
- git
- helm
- helmfile
- cert-manager
- prometheus
- nginx
- nextcloud
- onlyoffice
- local-storage
- cert-manager
synchronize:
src: '../../helmfiles'
dest: '{{ data_directory }}/source'
......@@ -32,6 +35,9 @@
tags:
- config
- oas
- nextcloud
- prometheus
- nginx
file:
state: directory
path: '{{ configuration_directory }}/values/apps'
......@@ -55,7 +61,14 @@
- name: Check if there are failed helm deployments
tags:
- helm
- helmfile
- prometheus
- nginx
- nextcloud
- onlyoffice
- local-storage
- cert-manager
command: 'helm ls --failed --short'
failed_when: false
register: helm_failed_deployments
......@@ -63,6 +76,13 @@
- name: Remove failed helm deployments
tags:
- helm
- helmfile
- prometheus
- nginx
- nextcloud
- onlyoffice
- local-storage
- cert-manager
shell: 'helm ls --failed --short | xargs -L1 helm delete --purge'
when: helm_failed_deployments.stdout != ""
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