From 528b4ff219acb9d0fab33e4c8422c43600fe596e Mon Sep 17 00:00:00 2001 From: Geoff Jacobs Date: Fri, 17 Jan 2020 15:00:30 +1100 Subject: [PATCH] ITOPSENG-395 reordering conditionals --- roles/product_install/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/product_install/tasks/main.yml b/roles/product_install/tasks/main.yml index d2ef758..ecec6c4 100644 --- a/roles/product_install/tasks/main.yml +++ b/roles/product_install/tasks/main.yml @@ -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: