Skip to content

Commit

Permalink
Enable EclipseLink Oracle extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkyffin committed Oct 23, 2023
1 parent afd5b67 commit dc80c62
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions roles/payara/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,23 @@
when: install_ojdbc11_jar | bool
notify: payara-handler

- name: 'Create domain lib/ext directory'
- name: 'Create symlink to ojdbc11.jar'
file:
state: directory
path: '{{ payara_domain_dir }}/lib/ext'
src: /usr/local/share/java/ojdbc11-{{ ojdbc11_jar_version }}.jar
path: '{{ payara_domain_dir }}/lib/ojdbc11.jar'
state: link
owner: '{{ payara_user }}'
group: '{{ payara_user_group }}'
follow: no
force: yes
when: install_ojdbc11_jar | bool
notify: payara-handler

- name: 'Create symlink to ojdbc11.jar'
# The EclipseLink Oracle extension has to be in the same place as the OJDBC driver, since they must be loaded at the same time.
- name: 'Create symlink to org.eclipse.persistence.oracle.jar'
file:
src: /usr/local/share/java/ojdbc11-{{ ojdbc11_jar_version }}.jar
path: '{{ payara_domain_dir }}/lib/ext/ojdbc11.jar'
src: '{{ payara_dir }}/glassfish/modules/org.eclipse.persistence.oracle.jar'
path: '{{ payara_domain_dir }}/lib/org.eclipse.persistence.oracle.jar'
state: link
owner: '{{ payara_user }}'
group: '{{ payara_user_group }}'
Expand Down

0 comments on commit dc80c62

Please sign in to comment.