diff --git a/roles/configure-mirrors/tasks/mirror/CentOS.yaml b/roles/configure-mirrors/tasks/mirror/CentOS.yaml index 441ce1ba6..68d6ba6e5 100644 --- a/roles/configure-mirrors/tasks/mirror/CentOS.yaml +++ b/roles/configure-mirrors/tasks/mirror/CentOS.yaml @@ -11,3 +11,15 @@ - etc/yum.repos.d/epel.repo notify: - Update yum 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/yum.conf + section: main + option: deltarpm + value: 0 diff --git a/roles/configure-mirrors/tasks/mirror/Fedora.yaml b/roles/configure-mirrors/tasks/mirror/Fedora.yaml index e5e04f433..778c87457 100644 --- a/roles/configure-mirrors/tasks/mirror/Fedora.yaml +++ b/roles/configure-mirrors/tasks/mirror/Fedora.yaml @@ -11,3 +11,15 @@ - 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"