This was taking AppStream repos with it on non-Stream distros. I don't think it was causing issues but it was deleting the wrong files nonetheless.
Signed-off-by: David Galloway <dgallowa@redhat.com>
# Since we convert from CentOS 8.X to CentOS Stream, we have to delete the Stream repo files that the process creates.
# We just don't want to rely on CentOS' infra to provide our mirror lists. It has bitten us in the past.
- name: Clean up Stream distro-provided repos
- shell: "rm -rvf /etc/yum.repos.d/*Stream*"
+ shell: "rm -rvf /etc/yum.repos.d/*-Stream-*"
when:
- ansible_lsb.description is defined
- '"Stream" in ansible_lsb.description'