From 0b3da911e4926884f22e5061b6b1a5eb224687ee Mon Sep 17 00:00:00 2001 From: Geoff Jacobs Date: Fri, 17 Jan 2020 14:21:37 +1100 Subject: [PATCH] ITOPSENG-395 more robust checking of the force upgrade --- roles/product_install/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/product_install/tasks/main.yml b/roles/product_install/tasks/main.yml index ea1e85a..d2ef758 100644 --- a/roles/product_install/tasks/main.yml +++ b/roles/product_install/tasks/main.yml @@ -73,12 +73,12 @@ - name: "Case: Version is not latest" block: - - name: "Case: No cached version, or but supplied is higher; use supplied" + - 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 + force_version_update is defined and force_version_update | bool - name: "Case: Cached version is higher, ignore supplied" set_fact: