8beac88116
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
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
- name: Remove .pydistutils.cfg configuration in homedir
|
|
file:
|
|
path: ~/.pydistutils.cfg
|
|
state: absent
|
|
|
|
- name: Include OS-specific variables
|
|
include_vars: "{{ zj_distro_os }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "{{ ansible_distribution }}.{{ ansible_architecture }}.yaml"
|
|
- "{{ ansible_distribution }}.yaml"
|
|
- "{{ ansible_os_family }}.yaml"
|
|
- "default.yaml"
|
|
loop_control:
|
|
loop_var: zj_distro_os
|
|
|
|
- name: Install /etc/pip.conf configuration
|
|
become: yes
|
|
template:
|
|
dest: /etc/pip.conf
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: etc/pip.conf.j2
|
|
|
|
- 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"
|
|
- "mirror/default.yaml"
|
|
loop_control:
|
|
loop_var: zj_distro_os
|