Skip to content
Snippets Groups Projects
Commit 4e34803b authored by Alexander Block's avatar Alexander Block
Browse files

Disable fastestmirror on CentOS

It actually slows down things dramatically when used in combination
with Ansible.
parent 7abcf6e0
No related branches found
No related tags found
No related merge requests found
# Valid bootstrap options (required): ubuntu, coreos, none
# Valid bootstrap options (required): ubuntu, coreos, centos, none
bootstrap_os: none
# Directory where the binaries will be installed
......
---
- 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
......@@ -5,4 +5,7 @@
- include: bootstrap-coreos.yml
when: bootstrap_os == "coreos"
- include: setup-pipelining.yml
- include: bootstrap-centos.yml
when: bootstrap_os == "centos"
- include: setup-pipelining.yml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment