blob: 3018e95fdc6fcad44e7e62369eed47875677e86b [file] [log] [blame]
Samuli Silvius51d7d012019-03-19 08:45:54 +02001---
2- name: Check if application Helm charts exist and install is even needed
3 block:
4 - name: "Does {{ app_helm_charts_install_directory }} directory exist and contain Helm Charts"
5 find:
6 paths: "{{ app_helm_charts_install_directory }}"
7 recurse: true
8 delegate_to: localhost
9 register: charts_files
10 - name: Set install active fact
11 set_fact:
12 install_needed: "{{ true if charts_files.matched | int > 0 else false }}"
13
14- name: Install app with Helm charts
15 block:
16 - include_tasks: transfer-helm-charts.yml
17 - include_tasks: pre-install.yml
18 - include_tasks: install.yml
19 - include_tasks: post-install.yml
20 when: install_needed
21
22- debug:
23 msg: "NOTE, nothing done as application Helm charts does not exist!"
24 when: not install_needed