c12s-kubespray/roles/bootstrap-os/tasks/bootstrap-centos.yml
Tupin Laurent 408faac3c9 Pip is required for vault #3376 (#3378)
* Change execution order for pip

* Remove spaces
2018-09-26 00:28:54 -07:00

30 lines
659 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: "{{ packages }}"
state: present
vars:
packages:
- libselinux-python
- epel-release
- name: Install pip for bootstrap
yum:
name: python-pip
state: present