dnf: Remove workaround for uppercase repo files

I8bf75ce44b9ec1fdd477fcddf2deebf2929d9fc1 added a workaround to remove
incorrectly named DNF repository files.

This workaround has been in place since the Antelope release and can now
be removed.

Change-Id: I7ba61ffa8aaabcedf1c5249e5f39f39257410f9a
This commit is contained in:
Mark Goddard 2023-11-02 09:34:26 +00:00
parent bd9043dca0
commit 1fd4e05c59

View File

@ -13,19 +13,6 @@
- "{{ repo_file_prefix }}.repo"
- "{{ repo_file_prefix }}-extras.repo"
# TODO(bbezak): remove following task in B release
- name: Remove incorrect uppercase repo files
vars:
repo_file_prefix: "{{ ansible_facts.distribution }}{% if ansible_facts.distribution == 'CentOS'%}-Stream{% endif %}"
file:
path: /etc/yum.repos.d/{{ item }}
state: absent
become: True
loop:
- "{{ repo_file_prefix }}-AppStream.repo"
- "{{ repo_file_prefix }}-BaseOS.repo"
- "{{ repo_file_prefix }}-Extras.repo"
- name: Update cache
dnf:
name: []