From 1ef750c8bb41908390427e5378b55acbf2d276c7 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kalynovskyi Date: Mon, 1 Jul 2019 16:15:37 +0300 Subject: [PATCH] ignore errors if set zuul_site_mirror_fqdn fails It can be that zuul_site_mirror_fqdn env variable will not be set, in this case the whole job will fail, instead of simply not configuring mirrors during image build. With this patch, if set_fact fails, mirrors simply will not be configured during image build, as planned in lines 62 and 88 in this playbook Change-Id: I049c696c7fb0d7cadb527a9f17dd01a42a671baa --- roles/build-images/tasks/kubeadm-aio.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/build-images/tasks/kubeadm-aio.yaml b/roles/build-images/tasks/kubeadm-aio.yaml index f6e3e3738..cba6e84ea 100644 --- a/roles/build-images/tasks/kubeadm-aio.yaml +++ b/roles/build-images/tasks/kubeadm-aio.yaml @@ -14,6 +14,7 @@ - name: set zuul_site_mirror_fqdn from env var if not defined when: zuul_site_mirror_fqdn is not defined + ignore_errors: True set_fact: zuul_site_mirror_fqdn: "{{ lookup('env','zuul_site_mirror_fqdn') }}"