From 5abb2be66fb9ca70e457113d02958d1d31ee6642 Mon Sep 17 00:00:00 2001 From: abregman Date: Sat, 4 Sep 2021 00:18:03 +0300 Subject: [PATCH] Fix rhpkg breakage rhpkg provides very specific build of 'rpm' which causes other OpenStack installation parts to fail (like undercloud installation). This change makes sure rpm-build (which pulls rpm) is NOT installed from rhpkg Change-Id: Ic25ff4461bb131c284b833a59d0782af6d350bb7 --- roles/patch_rpm/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/patch_rpm/tasks/main.yml b/roles/patch_rpm/tasks/main.yml index f47b339..8c66132 100644 --- a/roles/patch_rpm/tasks/main.yml +++ b/roles/patch_rpm/tasks/main.yml @@ -41,8 +41,19 @@ - 'libffi-devel' - 'mock' - 'openssl-devel' + state: present + register: task_result + until: task_result is success + retries: 3 + delay: 3 + + - name: Install rpm-build from non-rhpkg repository + become: yes + yum: + name: - 'rpm-build' state: present + disablerepo: 'rhpkg' register: task_result until: task_result is success retries: 3