e5a2818896
The flag dnf_install_epel was being used to predicate installation of the EPEL RPM repo package, but not preventing the installation of configuration for access to EPEL. This small patch completes the job. Updates the overcloud host configure CI job to install EPEL mirrors, since it was previously relying on this buggy behaviour. Change-Id: Ib417837d0772338b16ea9f7f2540549f277d5de8
49 lines
940 B
YAML
49 lines
940 B
YAML
---
|
|
- name: Copy CentOS repo templates
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: /etc/yum.repos.d/{{ item }}
|
|
owner: root
|
|
group: root
|
|
mode: 0664
|
|
become: True
|
|
loop:
|
|
- CentOS-AppStream.repo
|
|
- CentOS-Base.repo
|
|
- CentOS-Extras.repo
|
|
|
|
- name: Update cache
|
|
dnf:
|
|
name: []
|
|
update_cache: yes
|
|
become: True
|
|
|
|
# NOTE(mgoddard): Install epel-release to ensure it does not get installed
|
|
# later and override our repo file.
|
|
- name: Install epel-release
|
|
dnf:
|
|
name: epel-release
|
|
state: installed
|
|
become: True
|
|
when: dnf_install_epel | bool
|
|
|
|
- name: Copy EPEL repo templates
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: /etc/yum.repos.d/{{ item }}
|
|
owner: root
|
|
group: root
|
|
mode: 0664
|
|
become: True
|
|
loop:
|
|
- epel.repo
|
|
- epel-modular.repo
|
|
when: dnf_install_epel | bool
|
|
|
|
- name: Update cache
|
|
dnf:
|
|
name: []
|
|
update_cache: yes
|
|
become: True
|
|
when: dnf_install_epel | bool
|