blob: ba5227920a7c27553d0eafcb21b389b52ed61466 [file] [log] [blame]
Tomas Levora5ea00a92018-12-19 14:36:36 +01001---
2- debug:
3 msg: "phase is {{ phase }}"
4
Samuli Silviusfe111112019-02-05 09:45:24 +02005- name: Check if install needed
6 block:
7 - name: "Does {{ app_helm_charts_install_directory }} exist and contain Helm Charts"
8 find:
9 paths: "{{ app_helm_charts_install_directory }}"
10 recurse: yes
11 delegate_to: localhost
12 register: charts_files
13 - name: Set install active fact
14 set_fact:
Milan Verespejc8268a02019-02-14 14:21:14 +010015 install_needed: "{{ true if charts_files.matched | int > 0 else false }}"
Samuli Silviusfe111112019-02-05 09:45:24 +020016 when: phase == "pre-install"
17
Tomas Levora5ea00a92018-12-19 14:36:36 +010018- include_tasks: "{{ phase }}.yml"
Samuli Silviusfe111112019-02-05 09:45:24 +020019 when: install_needed
20
21- debug:
22 msg: "Install needed {{ install_needed }}"