changing file mode, going back to moving the dependency jars since unarchive -j brings other problems

This commit is contained in:
Geoff Jacobs
2022-07-25 13:13:24 +10:00
parent e5c1954b81
commit 47cb955cbb

View File

@@ -235,23 +235,18 @@
- obr.xml
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
mode: 0750
extra_opts: [-j] # pass the junk paths to the unzip command so we flatten the dependencies directory
mode: 0644
register: obr_unpack
failed_when: # validation doesn't handle the -j flag, so this deals with the /dependencies/ directory not existing on dest.
- obr_unpack.rc > 0
- "'Unexpected error when accessing exploded file' not in obr_unpack.msg"
- "'No such file or directory' not in obr_unpack.msg"
- "'{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/' not in obr_unpack.msg"
# - name: Move JSD dependency jars into the installed-plugins dir # noqa 503 - ignore lint info about when changed
# 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: Move JSD dependency jars into the bundled-plugins dir # noqa 503 - ignore lint info about when changed
copy:
remote_src: yes
src: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/"
dest: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-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
- 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