ITOPSENG-395 adding defaults based on PR feedback

This commit is contained in:
Geoff Jacobs
2020-01-17 17:05:17 +11:00
parent 3f04a8c6a8
commit 338f3b4e55
2 changed files with 5 additions and 3 deletions

View File

@@ -76,8 +76,8 @@
- name: "Case: No cached version, or supplied is higher; use supplied"
set_fact:
atl_download_version: "{{ atl_product_version }}"
when: (force_version_update is defined and force_version_update | bool) or
(not cached.stat.exists) or
when: 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"
@@ -85,7 +85,7 @@
atl_download_version: "{{ atl_cached_version }}"
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)
not force_version_update | bool
when: not version_is_latest