Disable fastestmirror on CentOS
It actually slows down things dramatically when used in combination with Ansible.pull/705/head
parent
7abcf6e0b9
commit
4e34803b1e
|
@ -1,4 +1,4 @@
|
||||||
# Valid bootstrap options (required): ubuntu, coreos, none
|
# Valid bootstrap options (required): ubuntu, coreos, centos, none
|
||||||
bootstrap_os: none
|
bootstrap_os: none
|
||||||
|
|
||||||
# Directory where the binaries will be installed
|
# Directory where the binaries will be installed
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- 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
|
- include: bootstrap-coreos.yml
|
||||||
when: bootstrap_os == "coreos"
|
when: bootstrap_os == "coreos"
|
||||||
|
|
||||||
|
- include: bootstrap-centos.yml
|
||||||
|
when: bootstrap_os == "centos"
|
||||||
|
|
||||||
- include: setup-pipelining.yml
|
- include: setup-pipelining.yml
|
Loading…
Reference in New Issue