summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-install/tasks/pre-install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/application-install/tasks/pre-install.yml')
-rw-r--r--ansible/roles/application-install/tasks/pre-install.yml51
1 files changed, 0 insertions, 51 deletions
diff --git a/ansible/roles/application-install/tasks/pre-install.yml b/ansible/roles/application-install/tasks/pre-install.yml
deleted file mode 100644
index bf6619b0..00000000
--- a/ansible/roles/application-install/tasks/pre-install.yml
+++ /dev/null
@@ -1,51 +0,0 @@
----
-# 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: Install helm plugins if needed
- block:
- - name: Get helm dir
- command: "{{ helm_bin_dir }}/helm home"
- register: helm_home_dir
- - name: Ensure that dir for helm plugins exists
- file:
- path: "{{ helm_home_dir.stdout }}/plugins"
- state: directory
- mode: 0755
- - name: Register all plugins to be inserted by dir names
- find:
- paths: "{{ app_helm_plugins_directory }}"
- file_type: "directory"
- register: list_of_plugins
- delegate_to: localhost
- - name: Install all helm plugins from {{ app_helm_plugins_directory }} dir
- copy:
- src: "{{ item.path }}"
- dest: "{{ helm_home_dir.stdout }}/plugins"
- directory_mode: yes
- mode: 0755
- with_items: "{{ list_of_plugins.files }}"
- become: true
- when: app_helm_plugins_directory is defined and app_helm_plugins_directory is not none
-
-- name: "Execute custom role {{ application_pre_install_role }} if defined."
- include_tasks: custom_role.yml
- vars:
- application_custom_role: "{{ application_pre_install_role }}"
-