adding the file command on azl2 to help with mimetype discovery. adding some failed_when logic to unarchiving the obr

This commit is contained in:
Geoff Jacobs
2022-07-25 12:28:33 +10:00
parent 2f6150492e
commit e5c1954b81
2 changed files with 9 additions and 3 deletions

View File

@@ -3,10 +3,11 @@
- name: Install Amazon-Linux-specific support packages
yum:
name:
- shadow-utils
- libxml2
- git-{{ git_version }}
- dejavu-sans-fonts
- file
- git-{{ git_version }}
- libxml2
- shadow-utils
- name: Limit the SSH ciphers
lineinfile:

View File

@@ -238,6 +238,11 @@
mode: 0750
extra_opts: [-j] # pass the junk paths to the unzip command so we flatten the dependencies directory
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: