25f110c399
So that we use AFS mirrors for CS9 nodes. Closes-Bug: #1959181 Change-Id: I2da3a5e8a45598c6b3ded132ea61b86b4480e262
29 lines
748 B
YAML
29 lines
748 B
YAML
- name: Install CentOS 9 repository files
|
|
become: yes
|
|
template:
|
|
dest: "/{{ zj_repo }}"
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: "centos9-stream/{{ zj_repo }}.j2"
|
|
with_items:
|
|
- etc/yum.repos.d/centos.repo
|
|
- etc/yum.repos.d/centos-addons.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
|