From f6face1b6a6afafe1c1976acd6087cc6ef12709b Mon Sep 17 00:00:00 2001 From: Geoff Jacobs Date: Thu, 21 Jul 2022 09:13:48 +1000 Subject: [PATCH] switching shell to copy/file commands and updating path --- .../tasks/jira-servicedesk_as_obr.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/roles/product_install/tasks/jira-servicedesk_as_obr.yml b/roles/product_install/tasks/jira-servicedesk_as_obr.yml index fba2b04..29ca7c4 100644 --- a/roles/product_install/tasks/jira-servicedesk_as_obr.yml +++ b/roles/product_install/tasks/jira-servicedesk_as_obr.yml @@ -198,7 +198,7 @@ group: "{{ atl_product_user }}" # Note as ansible unarchive cant handle "-j junk paths" we need to ignore errors to bypass the path verify -- name: Unpack the obr into the installed-plugins dir +- name: Unpack the obr into the atlassian-bundled-plugins dir unarchive: remote_src: true src: "{{ atl_obr_download }}" @@ -214,7 +214,13 @@ ignore_errors: yes - name: Move JSD dependency jars into the installed-plugins dir # noqa 503 - ignore lint info about when changed - shell: - cmd: "mv {{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/*.jar {{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins" - creates: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/servicedesk-core-ui-plugin-{{ atl_jsd_build }}-*.jar" + copy: + src: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/" + dest: "{{ atl_product_home_shared }}/plugins/installed-plugins/" when: obr_unpack.changed + +- name: Remove the empty dependencies folder # noqa 503 - ignore lint info about when changed + file: + path: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies" + state: absent + when: obr_unpack.changed \ No newline at end of file