summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-install/tasks/install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/application-install/tasks/install.yml')
-rw-r--r--ansible/roles/application-install/tasks/install.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/ansible/roles/application-install/tasks/install.yml b/ansible/roles/application-install/tasks/install.yml
index d385b448..eaa40ce2 100644
--- a/ansible/roles/application-install/tasks/install.yml
+++ b/ansible/roles/application-install/tasks/install.yml
@@ -38,5 +38,15 @@
environment:
PATH: "{{ helm_bin_dir }}:{{ ansible_env.PATH }}"
-- name: Helm Install application {{ app_name }}
- command: "{{ helm_bin_dir }}/helm install {{ helm_repository_name }}/{{ app_helm_chart_name }} --name {{ app_helm_release_name }} --namespace {{ app_kubernetes_namespace }}"
+- name: Check for deploy plugin presence
+ stat:
+ path: '~/.helm/plugins/deploy/deploy.sh'
+ register: deploy_plugin_presence
+
+- name: "Helm Install application {{ app_name }}"
+ command: >
+ {{ helm_bin_dir }}/helm
+ {{ 'deploy' if deploy_plugin_presence.stat.exists else 'install --name' }}
+ {{ app_helm_release_name }}
+ {{ helm_repository_name }}/{{ app_helm_chart_name }}
+ --namespace {{ app_kubernetes_namespace }}