zuul-jobs/roles/configure-mirrors/tasks/mirror/CentOSStream-8.yaml
Javier Pena cfada06486 Fix repo files for CentOS Stream
Some repo file names and ids do not match the files provided by
CentOS, which can cause duplicated repos [1].

[1] - https://8a51f3027f5f50a14ba7-fcfc85786424b7f5a3fcadff9da35f94.ssl.cf5.rackcdn.com/770771/4/check/packstack-centos8s-integration-scenario002/9dc0bd2/logs/etc/yum.repos.d/index.html

Change-Id: Ib89ad9f79cd5317b3178301a47462277004fa81a
2021-01-22 17:46:26 +01:00

32 lines
939 B
YAML

- name: Install CentOS 8 Stream repository files
become: yes
template:
dest: "/{{ zj_repo }}"
group: root
mode: 0644
owner: root
src: "centos8-stream/{{ zj_repo }}.j2"
with_items:
- etc/yum.repos.d/CentOS-Stream-AppStream.repo
- etc/yum.repos.d/CentOS-Stream-BaseOS.repo
- etc/yum.repos.d/CentOS-Stream-HighAvailability.repo
- etc/yum.repos.d/CentOS-Stream-Extras.repo
- etc/yum.repos.d/CentOS-Stream-PowerTools.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