diff --git a/roles/configure-mirrors/templates/etc/yum.repos.d/fedora-updates.repo.j2 b/roles/configure-mirrors/templates/etc/yum.repos.d/fedora-updates.repo.j2 index e2b70ba44..b1b6f7938 100644 --- a/roles/configure-mirrors/templates/etc/yum.repos.d/fedora-updates.repo.j2 +++ b/roles/configure-mirrors/templates/etc/yum.repos.d/fedora-updates.repo.j2 @@ -2,7 +2,11 @@ [updates] name=Fedora $releasever - $basearch - Updates failovermethod=priority +{% if ansible_distribution_version | version_compare('28', '<') %} baseurl={{ package_mirror }}/updates/$releasever/$basearch/ +{% else %} +baseurl={{ package_mirror }}/updates/$releasever/Everything/$basearch/ +{% endif %} enabled=1 repo_gpgcheck=0 type=rpm @@ -14,7 +18,11 @@ skip_if_unavailable=False [updates-debuginfo] name=Fedora $releasever - $basearch - Updates - Debug failovermethod=priority +{% if ansible_distribution_version | version_compare('28', '<') %} baseurl={{ package_mirror }}/updates/$releasever/$basearch/debug/ +{% else %} +baseurl={{ package_mirror }}/updates/$releasever/Everything/$basearch/debug/tree/ +{% endif %} enabled=0 repo_gpgcheck=0 type=rpm @@ -26,7 +34,11 @@ skip_if_unavailable=False [updates-source] name=Fedora $releasever - Updates Source failovermethod=priority +{% if ansible_distribution_version | version_compare('28', '<') %} baseurl={{ package_mirror }}/updates/$releasever/SRPMS/ +{% else %} +baseurl={{ package_mirror }}/updates/$releasever/Everything/source/tree/ +{% endif %} enabled=0 repo_gpgcheck=0 type=rpm