Skip to content

Commit

Permalink
Add JAVA_HOME in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Jacques ETUNE NGI committed Feb 9, 2020
1 parent 1a878e2 commit 8982bde
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tasks/setup-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@
mode: a+x
when:
- jdk_default

- name: ({{ ansible_distribution }}) Set the JAVA_HOME in environment (Default JDK = {{ jdk_default }})
lineinfile:
dest: "/etc/environment"
regexp: "JAVA_HOME="
line: "JAVA_HOME={{ install_dir }}"
when:
- jdk_default

- name: ({{ ansible_distribution }}) Set the JAVA_HOME{{ v_major }} in environment (Default JDK = {{ jdk_default }})
lineinfile:
dest: "/etc/environment"
regexp: "JAVA_HOME{{ v_major }}="
line: "JAVA_HOME{{ v_major }}={{ install_dir }}"

0 comments on commit 8982bde

Please sign in to comment.