mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-395 adjusting conditionals
This commit is contained in:
@@ -73,18 +73,19 @@
|
|||||||
- name: "Case: Version is not latest"
|
- name: "Case: Version is not latest"
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: "Case: No cached version, or but supplied is higher or forced; use supplied"
|
- name: "Case: No cached version, or supplied is higher; use supplied"
|
||||||
set_fact:
|
set_fact:
|
||||||
atl_download_version: "{{ atl_product_version }}"
|
atl_download_version: "{{ atl_product_version }}"
|
||||||
when: (force_version_update is defined and force_version_update | bool) or
|
when: (not cached.stat.exists) or
|
||||||
(not cached.stat.exists) or
|
|
||||||
atl_product_version is version(atl_cached_version, '>')
|
atl_product_version is version(atl_cached_version, '>')
|
||||||
|
|
||||||
- name: "Case: Cached version is higher, ignore supplied"
|
- name: "Case: Cached version is higher or forced, ignore supplied"
|
||||||
set_fact:
|
set_fact:
|
||||||
atl_download_version: "{{ atl_cached_version }}"
|
atl_download_version: "{{ atl_cached_version }}"
|
||||||
when: cached.stat.exists and
|
when:
|
||||||
atl_product_version is version(atl_cached_version, '<=')
|
- cached.stat.exists
|
||||||
|
- atl_product_version is version(atl_cached_version, '<=')
|
||||||
|
- (not force_version_update is defined or not force_version_update | bool)
|
||||||
|
|
||||||
when: not version_is_latest
|
when: not version_is_latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user