Skip to content

Commit

Permalink
avniproject/avni-server#813 | Do not Install JDK during deploy_app_to…
Browse files Browse the repository at this point in the history
…_servers
  • Loading branch information
himeshr committed Dec 17, 2024
1 parent 7267112 commit 41b4b84
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure/deploy_app_to_servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
2 changes: 2 additions & 0 deletions configure/group_vars/basic_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ project_name: avni
letsencrypt_email: [email protected]
avni_cache_dir: /var/cache/avni

install_jdk: true

## Integration server variables
int_appserver_application_name: avni-int-service
int_appserver_port: 6013
Expand Down
9 changes: 7 additions & 2 deletions configure/roles/jdk/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41b4b84

Please sign in to comment.