]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Streamline RHEL repo registration 570/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 30 Apr 2020 14:48:11 +0000 (10:48 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 30 Apr 2020 14:48:11 +0000 (10:48 -0400)
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 <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index be21edb3f93f95fe84b20c1ac45b71812f64c74d..bce45edd090cc29f4d4deffdc6b0128b3d6d4966 100644 (file)
   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