
Currently, config file is CentOS-8-stream.yaml but the value of ansible_distribution_major_version fact in CentOS stream is 8, not 8-stream [1], so jobs running in centos-8-stream images are actually using centos-8 repositories. This patch is modyfing the list of config files to use ansible_lsb.id fact wich is CentOSStream and renaming the file name. [1] https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_792/770771/2/check/packstack-centos8s-integration-scenario002/792342c/zuul-info/host-info.centos8s.yaml Change-Id: I7199acdd45151d2553ef17588909615b5a7c5b61
32 lines
923 B
YAML
32 lines
923 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-Base.repo
|
|
- etc/yum.repos.d/CentOS-Stream-HA.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
|