From c32d8a7e8d0b804066687569a991561b324f6868 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 30 Apr 2020 10:48:11 -0400 Subject: [PATCH] common: Streamline RHEL repo registration Same thing here as the last commit. Satellite has slowed down significantly so the first repo would get enabled successfully but the Satellite DB hadn't caught up yet so subsequent repo enablements would throw 500 errors. This enables all the appropriate repos at the same time reducing the number of times we have to interact with Satellite. Signed-off-by: David Galloway --- roles/common/tasks/rhel-entitlements.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index be21edb3..bce45edd 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -129,8 +129,7 @@ no_log: true - name: Enable necessary rhsm repos - command: subscription-manager repos --enable {{ item }} - with_items: "{{ rhsm_repos }}" + command: subscription-manager repos {% for repo in rhsm_repos|list %}--enable={{ repo }} {% endfor %} when: rhsm_registered == true and replace_repos|bool == true retries: 5 -- 2.47.3