zuul-jobs/roles/configure-mirrors/tasks/mirror/Fedora.yaml
David Moreau-Simard ba4ff63b20
Disable deltarpm for CentOS and Fedora
deltarpm is useful when the bottleneck is the network throughput
on long-lived instances where you need to *update* packages that
are already installed.
It also requires the mirrors we are using to mirror the drpm packages
which is not currently done in our infrastructure.

Let's disable deltarpm as it's not suited to our use case.

Change-Id: Ibf3b6093496375efda26f46eaf90438af0adb394
2017-09-16 11:56:56 -06:00

26 lines
679 B
YAML

- name: Install Fedora repository files
become: yes
template:
dest: "/{{ item }}"
group: root
mode: 0644
owner: root
src: "{{ item }}.j2"
with_items:
- etc/yum.repos.d/fedora.repo
- etc/yum.repos.d/fedora-updates.repo
notify:
- Update 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/dnf.conf
section: main
option: deltarpm
value: "false"