ca9ea097df
Migrate older inline= syntax to pure yml syntax for module args as to be consistant with most of the rest of the tasks Cleanup some spacing in various files Rename some files named yaml to yml for consistancy
15 lines
402 B
YAML
15 lines
402 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
|