ITOPSENG-395 adjusting conditionals

This commit is contained in:
Geoff Jacobs
2020-01-17 15:24:24 +11:00
parent f8f3cec9c2
commit 3f04a8c6a8

View File

@@ -76,16 +76,16 @@
- name: "Case: No cached version, or supplied is higher; use supplied"
set_fact:
atl_download_version: "{{ atl_product_version }}"
when: (not cached.stat.exists) or
when: (force_version_update is defined and force_version_update | bool) or
(not cached.stat.exists) or
atl_product_version is version(atl_cached_version, '>')
- name: "Case: Cached version is higher or forced, ignore supplied"
set_fact:
atl_download_version: "{{ atl_cached_version }}"
when:
- cached.stat.exists
- atl_product_version is version(atl_cached_version, '<=')
- (not force_version_update is defined or not force_version_update | bool)
when: cached.stat.exists and
atl_product_version is version(atl_cached_version, '<=') and
(not force_version_update is defined or not force_version_update | bool)
when: not version_is_latest