c12s-kubespray/roles/bootstrap-os/tasks/bootstrap-centos.yml
abelgana c0b0d06688 Changre raw execution to use yum module
Changed raw exection to use yum module provided by Ansible.
2017-10-12 07:39:26 -04:00

20 lines
509 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
- name: Install packages requirements for bootstrap
yum:
name: libselinux-python
state: present