Skip to content

Commit 4e0a7bf

Browse files
committed
Add the jdk to PATH in .profile
1 parent a8cd549 commit 4e0a7bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ansible/roles/java-base/tasks/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,9 @@
4545
dest: /home/iojs
4646
tags: java
4747

48-
- name: create symlink
48+
- name: add jdk to PATH
4949
when: os in "ubuntu1404" and arch == "ppc64"
50-
file:
51-
src: /home/iojs/jdk8u144-b01
52-
dest: /home/iojs/jkd
53-
state: link
50+
shell: grep -s -q "export PATH=/home/iojs/jdk8u144-b01/bin:\$PATH" /home/iojs/.profile || echo "export PATH=/home/iojs/jdk8u144-b01/bin:\$PATH" >> /home/iojs/.profile
5451
tags: java
5552

5653
# if this fails you want to check in vars/main.yml and add package name

0 commit comments

Comments
 (0)