aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml')
-rw-r--r--ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml b/ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml
new file mode 100644
index 000000000..42388bcd9
--- /dev/null
+++ b/ansible/roles/set_package_installer_proxy/tasks/yum_disable_fastestmirrors.yml
@@ -0,0 +1,11 @@
+---
+ - name: yum disable fastest mirrors
+ lineinfile:
+ dest: "/etc/yum/pluginconf.d/fastestmirror.conf"
+ regexp: "^enabled=1"
+ line: "enabled=0"
+ ignore_errors: true
+
+ - name: yum clean all
+ command: yum clean all
+