diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-02-13 15:34:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-13 15:34:14 +0000 |
commit | 8063d1a15de138bbeff98fc8b48c78154ada8717 (patch) | |
tree | a0d21b562a259c17e9caac20294df6abb3c5f367 /ansible/roles | |
parent | 59d5c325dcdd0f46be5ae15b683474578b13d98c (diff) | |
parent | f3eee9e2131a59e2a0995c53c07001f24f9187a2 (diff) |
Merge changes Idcc4c510,I81261f51,Ica9fc768,I7b5d135a
* changes:
More default values and simplify onap config
Clarify packaging variables documentation
Helm install optional and default values
Helm charts dir commenting causes / dir copying
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/application-install/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ansible/roles/application-install/tasks/main.yml b/ansible/roles/application-install/tasks/main.yml index 3306d9e4..89e7ef7e 100644 --- a/ansible/roles/application-install/tasks/main.yml +++ b/ansible/roles/application-install/tasks/main.yml @@ -2,4 +2,21 @@ - debug: msg: "phase is {{ phase }}" +- name: Check if install needed + block: + - name: "Does {{ app_helm_charts_install_directory }} exist and contain Helm Charts" + find: + paths: "{{ app_helm_charts_install_directory }}" + recurse: yes + delegate_to: localhost + register: charts_files + - name: Set install active fact + set_fact: + install_needed: "{{ yes if charts_files.matched | int > 0 else no }}" + when: phase == "pre-install" + - include_tasks: "{{ phase }}.yml" + when: install_needed + +- debug: + msg: "Install needed {{ install_needed }}" |