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 - obr.xml
owner: "{{ atl_product_user }}" owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}" group: "{{ atl_product_user }}"
mode: 0750 mode: 0644
extra_opts: [-j] # pass the junk paths to the unzip command so we flatten the dependencies directory
register: obr_unpack 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 - name: Move JSD dependency jars into the bundled-plugins dir # noqa 503 - ignore lint info about when changed
# copy: copy:
# src: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/" remote_src: yes
# dest: "{{ atl_product_home_shared }}/plugins/installed-plugins/" src: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies/"
# when: obr_unpack.changed 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 - name: Remove the empty dependencies folder # noqa 503 - ignore lint info about when changed
# file: file:
# path: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies" path: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies"
# state: absent state: absent
# when: obr_unpack.changed when: obr_unpack.changed