Rename config repos file config for CentOS Stream

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
This commit is contained in:
Alfredo Moralejo 2021-01-14 15:11:58 +01:00
parent 30c2e573dc
commit 8beac88116
2 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- name: Setup distribution specific packaging mirrors
include_tasks: "{{ zj_distro_os }}"
with_first_found:
- "mirror/{{ ansible_lsb.id }}-{{ ansible_lsb.major_release }}.yaml"
- "mirror/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "mirror/{{ ansible_distribution }}.yaml"
- "mirror/{{ ansible_os_family }}.yaml"