ITOPSENG-395 reordering conditionals

This commit is contained in:
Geoff Jacobs
2020-01-17 15:00:30 +11:00
parent 0b3da911e4
commit 528b4ff219

View File

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