2016-12-07 16:16:06 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check presence of fastestmirror.conf
|
2017-02-17 21:22:34 +00:00
|
|
|
stat:
|
|
|
|
path: /etc/yum/pluginconf.d/fastestmirror.conf
|
2016-12-07 16:16:06 +00:00
|
|
|
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
|