diff --git a/roles/dev_common/tasks/main.yml b/roles/dev_common/tasks/main.yml index c3076cf..caff75f 100644 --- a/roles/dev_common/tasks/main.yml +++ b/roles/dev_common/tasks/main.yml @@ -35,6 +35,17 @@ group: "{{ payara_user }}" mode: 0664 +# Payara 6+ creates its trust store in PKCS12 format, however the javax.net.ssl.trustStore parameter in ~/.m2/settings.xml only seems to work with JKS format +- name: "Create JKS-format trust store" + command: + cmd: keytool -importkeystore -srckeystore /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.p12 -destkeystore /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.jks -deststoretype jks + stdin: | + changeit + changeit + changeit + args: + creates: /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.jks + - name: "Make test ids main folder" file: path: /home/{{ payara_user }}/test/data/ids/main