k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
509 B
20 lines
509 B
---
|
|
|
|
- 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
|
|
|
|
- name: Install packages requirements for bootstrap
|
|
yum:
|
|
name: libselinux-python
|
|
state: present
|