zuul-jobs/roles/configure-mirrors/tasks/mirror/CentOS-8.yaml
yatinkarel 5cfc37b300 Rename CentOS8 repo files to CentOS-Linux
With CentOS8.3 release repo files are now
renamed to CentOS-Linux*, update in zuul-jobs
too to sync, also update repo names as per
latest CentOS8 minor release.

The change is needed now as dib images are updated
to reflect new repo files post [1].

[1] https://review.opendev.org/c/openstack/diskimage-builder/+/765963

Change-Id: I7ed9bd582043717ae5bae303ea9b32db7f73008e
2020-12-18 14:23:08 +05:30

33 lines
950 B
YAML

- name: Install CentOS 8 repository files
become: yes
template:
dest: "/{{ zj_repo }}"
group: root
mode: 0644
owner: root
src: "centos8/{{ zj_repo }}.j2"
with_items:
- etc/yum.repos.d/CentOS-Linux-AppStream.repo
- etc/yum.repos.d/CentOS-Linux-BaseOS.repo
- etc/yum.repos.d/CentOS-Linux-HighAvailability.repo
- etc/yum.repos.d/CentOS-Linux-Extras.repo
- etc/yum.repos.d/CentOS-Linux-PowerTools.repo
- etc/yum.repos.d/epel.repo
loop_control:
loop_var: zj_repo
notify:
- Update yum/dnf cache
# http://dnf.readthedocs.io/en/latest/conf_ref.html#options-for-both-main-and-repo
# deltarpm is useful when the bottleneck is the network throughput.
# It also requires additional drpm packages to be hosted by the mirrors which
# is not done by default.
- name: Disable deltrarpm
become: yes
ini_file:
path: /etc/dnf.conf
section: main
option: deltarpm
value: 0
mode: 0644