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>
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