From acd01d8519d6fb8b54e857d1c3b487d39fbd2841 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 14 May 2019 09:34:39 +0200 Subject: [PATCH] copr: builder: add infra repo only when preparing image This is because on aarch64 builders we handle this a little bit differently, and it would result in having the repo enabled twice. --- roles/copr/backend/files/provision/provision_builder_tasks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/copr/backend/files/provision/provision_builder_tasks.yml b/roles/copr/backend/files/provision/provision_builder_tasks.yml index 161454f90c..8336a92924 100644 --- a/roles/copr/backend/files/provision/provision_builder_tasks.yml +++ b/roles/copr/backend/files/provision/provision_builder_tasks.yml @@ -1,5 +1,7 @@ - name: put infra repos into yum.repos.d copy: src=files/dnf/infra-tags.repo dest=/etc/yum.repos.d + when: + - prepare_base_image - name: put infra stg repos into yum.repos.d if staging copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d