From: David Galloway Date: Thu, 30 Apr 2020 14:48:11 +0000 (-0400) Subject: common: Streamline RHEL repo registration X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c32d8a7e8d0b804066687569a991561b324f6868;p=ceph-cm-ansible.git 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 --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index be21edb..bce45ed 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