mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-16 04:10:47 -03:30
15 lines
397 B
YAML
15 lines
397 B
YAML
---
|
|
|
|
- name: Check presence of fastestmirror.conf
|
|
stat: path=/etc/yum/pluginconf.d/fastestmirror.conf
|
|
register: fastestmirror
|
|
|
|
# fastestmirror plugin actually slows down Ansible deployments
|
|
- name: Disable fastestmirror plugin
|
|
lineinfile:
|
|
dest: /etc/yum/pluginconf.d/fastestmirror.conf
|
|
regexp: "^enabled=.*"
|
|
line: "enabled=0"
|
|
state: present
|
|
when: fastestmirror.stat.exists
|