mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
address a stack of linting warnings/errors and deprecations
This commit is contained in:
@@ -168,7 +168,7 @@
|
||||
# Otherwise directory lock was either already created or
|
||||
# could not be created. Fall back is to continue and install from temp
|
||||
|
||||
when: download_obr
|
||||
when: download_obr | bool
|
||||
|
||||
# If the intention is to move obr to home_shared
|
||||
- name: Move obr to home_shared
|
||||
@@ -209,7 +209,7 @@
|
||||
atl_obr_download: "{{ atl_obr_shared_download }}"
|
||||
when: temp_deleted is succeeded
|
||||
|
||||
when: move_obr
|
||||
when: move_obr | bool
|
||||
|
||||
# At this point the binary is in {{ atl_obr_download }}
|
||||
# (which is either on home_shared or temp)
|
||||
@@ -238,14 +238,14 @@
|
||||
mode: 0644
|
||||
register: obr_unpack
|
||||
|
||||
- name: Move JSD dependency jars into the bundled-plugins dir # noqa 503 - ignore lint info about when changed
|
||||
- name: Move JSD dependency jars into the bundled-plugins dir # noqa no-handler - ignore lint info about when changed
|
||||
ansible.builtin.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
|
||||
- name: Remove the empty dependencies folder # noqa no-handler - ignore lint info about when changed
|
||||
ansible.builtin.file:
|
||||
path: "{{ atl_product_installation_versioned }}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/dependencies"
|
||||
state: absent
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
- name: Fetch the latest edition version
|
||||
ansible.builtin.include_tasks: "{{ atl_product_edition }}_version_latest.yml"
|
||||
|
||||
when: not cached.stat.exists and version_is_latest
|
||||
when: not cached.stat.exists and version_is_latest | bool
|
||||
|
||||
|
||||
######################################################################
|
||||
@@ -72,7 +72,7 @@
|
||||
atl_download_version: "{{ atl_latest_version }}"
|
||||
when: not cached.stat.exists
|
||||
|
||||
when: version_is_latest
|
||||
when: version_is_latest | bool
|
||||
|
||||
- name: "Case: Version is not latest"
|
||||
block:
|
||||
@@ -100,14 +100,14 @@
|
||||
atl_product_normalised_version is version(atl_cached_normalised_version, '<=') and
|
||||
not force_version_update | bool
|
||||
|
||||
when: not version_is_latest
|
||||
when: not version_is_latest | bool
|
||||
|
||||
|
||||
- name: "Fallthrough guard: Use cached or supplied version if nothing set"
|
||||
ansible.builtin.set_fact:
|
||||
atl_download_version: "{{ atl_cached_version or atl_product_version }}"
|
||||
when: atl_download_version is not defined or
|
||||
atl_download_version|length == 0
|
||||
atl_download_version | length == 0
|
||||
|
||||
- name: Override the supplied version with the calculated one
|
||||
ansible.builtin.set_fact:
|
||||
@@ -206,7 +206,7 @@
|
||||
# Otherwise directory lock was either already created or
|
||||
# could not be created. Fall back is to continue and install from temp
|
||||
|
||||
when: download_binary
|
||||
when: download_binary | bool
|
||||
|
||||
# If the intention is to move binary to home_shared
|
||||
- name: Move product installer to home_shared
|
||||
@@ -250,7 +250,7 @@
|
||||
atl_product_download: "{{ atl_product_home_shared_download }}"
|
||||
when: temp_deleted is succeeded
|
||||
|
||||
when: move_binary
|
||||
when: move_binary | bool
|
||||
|
||||
# At this point the binary is in {{ atl_product_download }}
|
||||
# (which is either on home_shared or temp)
|
||||
@@ -276,4 +276,4 @@
|
||||
|
||||
- name: Include if jsd is requested to be installed from OBR
|
||||
ansible.builtin.include_tasks: "jira-servicedesk_as_obr.yml"
|
||||
when: atl_install_jsd_as_obr
|
||||
when: atl_install_jsd_as_obr | bool
|
||||
|
||||
Reference in New Issue
Block a user