summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-install/tasks/pre-install.yml
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2018-12-20 07:57:12 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-20 07:57:12 +0000
commit918c5707e29424bfdcf7e37cef3182cd3a8c8448 (patch)
tree225b3bc44b78164ac8081ff12d5c7f8203b30328 /ansible/roles/application-install/tasks/pre-install.yml
parent4b9e92038f74cf576fc381ba989c3f6de56f6135 (diff)
parent11e2af5b184a9260b31ab3be497cb709f3471cec (diff)
Merge "Adding role for application handling"
Diffstat (limited to 'ansible/roles/application-install/tasks/pre-install.yml')
-rw-r--r--ansible/roles/application-install/tasks/pre-install.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/ansible/roles/application-install/tasks/pre-install.yml b/ansible/roles/application-install/tasks/pre-install.yml
new file mode 100644
index 00000000..b782ca76
--- /dev/null
+++ b/ansible/roles/application-install/tasks/pre-install.yml
@@ -0,0 +1,23 @@
+---
+# before custom specific code is executed we need to move helm charts to infra
+- name: Distribute helm charts to infra node
+ block:
+ - name: Archive helm charts
+ archive:
+ path: "{{ app_helm_charts_install_directory }}/*"
+ dest: "{{ app_helm_charts_install_directory }}.tgz"
+ delegate_to: localhost
+ - name: Create helm charts dir on infra
+ file:
+ path: "{{ app_helm_charts_infra_directory }}"
+ state: directory
+ mode: 0755
+ - name: Unarchive helm charts on infra node
+ unarchive:
+ src: "{{ app_helm_charts_install_directory }}.tgz"
+ dest: "{{ app_helm_charts_infra_directory }}"
+
+- name: "Execute custome role {{ application_pre_install_role }} if defined."
+ include_tasks: custom_role.yml
+ vars:
+ application_custom_role: "{{ application_pre_install_role }}"