From d151bee4a67d1e201999cd77402474e0f30d2be9 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Wed, 5 Aug 2020 14:40:30 +0530 Subject: [PATCH] Honour standalone updates too for container-prep This is needed for running standalone deploy with container updates outside of zuul. In zuul jobs issue was not detected as update_containers is always set for zuul jobs. Partial-Bug: #1889219 Change-Id: I87a0214a344a9b23dd267e412a37b2abe0eb0571 --- roles/container-prep/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/container-prep/tasks/main.yml b/roles/container-prep/tasks/main.yml index 7985c99b8..6b2dff357 100644 --- a/roles/container-prep/tasks/main.yml +++ b/roles/container-prep/tasks/main.yml @@ -60,7 +60,9 @@ set_fact: update_containers_append_tag: "{{ lookup('pipe','date +-updated-%Y%m%d%H%M%S') }}" cacheable: true - when: update_containers is defined and update_containers|bool and update_containers_append_tag is undefined + when: + - update_containers_append_tag is undefined + - (update_containers is defined and update_containers|bool) or (standalone_container_prep_updates is defined and standalone_container_prep_updates|bool) tags: - undercloud-install