From 41b4b84ce1b75196a685fef113764f80ad612635 Mon Sep 17 00:00:00 2001 From: himeshr Date: Tue, 17 Dec 2024 17:03:15 +0530 Subject: [PATCH] avniproject/avni-server#813 | Do not Install JDK during deploy_app_to_servers --- configure/deploy_app_to_servers.yml | 1 + configure/group_vars/basic_vars.yml | 2 ++ configure/roles/jdk/tasks/main.yml | 9 +++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configure/deploy_app_to_servers.yml b/configure/deploy_app_to_servers.yml index 84be037..38cc58b 100644 --- a/configure/deploy_app_to_servers.yml +++ b/configure/deploy_app_to_servers.yml @@ -7,6 +7,7 @@ remote_user: "{{ deploy_app_remote_user }}" vars: update_apt_cache: yes + install_jdk: false vars_files: - group_vars/basic_vars.yml - "{{ deploy_app_env_vars_file }}" diff --git a/configure/group_vars/basic_vars.yml b/configure/group_vars/basic_vars.yml index 8375e4d..9237893 100644 --- a/configure/group_vars/basic_vars.yml +++ b/configure/group_vars/basic_vars.yml @@ -4,6 +4,8 @@ project_name: avni letsencrypt_email: avni@samanvayfoundation.org avni_cache_dir: /var/cache/avni +install_jdk: true + ## Integration server variables int_appserver_application_name: avni-int-service int_appserver_port: 6013 diff --git a/configure/roles/jdk/tasks/main.yml b/configure/roles/jdk/tasks/main.yml index 5671cd3..eaf47ac 100644 --- a/configure/roles/jdk/tasks/main.yml +++ b/configure/roles/jdk/tasks/main.yml @@ -1,3 +1,8 @@ --- -- include_tasks: java_pre.yml -- include_tasks: java_install.yml +- name: Pre-install Java JDK + include_tasks: java_pre.yml + when: install_jdk + +- name: Install Java JDK + include_tasks: java_install.yml + when: install_jdk