Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tasks/redhat/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
tags:
- installation

- name: ensure keytool and javadoc links present
file: src={{ item.src }} dest="/usr/bin/{{ item.dest }}" state=link
with_items:
- { src: "{{ oracle_java_home }}/jre/bin/keytool", dest: 'keytool' }
- { src: "{{ oracle_java_home }}/bin", dest: 'javadoc' }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably you'll need sudo: yes here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need a when: oracle_java_set_as_default.

- name: set Java version as default
alternatives:
name="{{ item.exe }}"
Expand Down