mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
ITOPSENG-395 move version normalizing logic to a fact
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
download_binary: true
|
||||
move_binary: false
|
||||
atl_product_download: "{{ atl_product_temp_download }}"
|
||||
atl_product_normalized_version: "{{atl_product_version ~ '-z'|replace('-m', '-am')}}"
|
||||
|
||||
|
||||
- name: "Case: No cached version, or supplied is higher; use supplied"
|
||||
@@ -88,8 +89,7 @@
|
||||
atl_download_version: "{{ atl_product_version }}"
|
||||
when: force_version_update | bool or
|
||||
not cached.stat.exists or
|
||||
atl_product_version is version(atl_cached_version, '>')
|
||||
{{atl_product_version ~ "-z"|replace("-m", "-am")}} is version({{atl_cached_version}}, '>')
|
||||
atl_product_normalised_version is version(atl_cached_version, '>')
|
||||
|
||||
- name: "Case: Cached version is higher or forced, ignore supplied"
|
||||
set_fact:
|
||||
|
||||
Reference in New Issue
Block a user