Skip to content

Commit 89c9af3

Browse files
committed
added tests for /usr/bin symlinks and fixed double when parameters on task that sets default Java installation in RedHat based distributions
1 parent e82a4e3 commit 89c9af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/redhat/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
name="{{ item.exe }}"
2929
link="/usr/bin/{{ item.exe }}"
3030
path="{{ item.path }}/{{ item.exe }}"
31-
when: oracle_java_set_as_default
3231
with_items:
3332
- { path: "{{ oracle_java_home }}/jre/bin", exe: 'java' }
3433
- { path: "{{ oracle_java_home }}/jre/bin", exe: 'keytool' }
3534
- { path: "{{ oracle_java_home }}/bin", exe: 'javac' }
3635
- { path: "{{ oracle_java_home }}/bin", exe: 'javadoc' }
3736
sudo: yes
38-
when: oracle_java_task_rpm_download|changed or (oracle_java_installed and oracle_java_version_installed != oracle_java_version_string)
37+
when: (oracle_java_set_as_default and oracle_java_task_rpm_download|changed) or
38+
(oracle_java_set_as_default and oracle_java_installed and oracle_java_version_installed != oracle_java_version_string)
3939
register: oracle_java_task_set_default
4040

4141
- name: in case there were changes, check host environment again

0 commit comments

Comments
 (0)