mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 05:59:30 -02:30
Install python-pip from local yum repository (#3940)
Add support install python-pip from local yum repository if local yum repository exist.
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
3ce033995f
commit
d4bd08f82e
@@ -29,20 +29,36 @@
|
|||||||
state: present
|
state: present
|
||||||
when: http_proxy is defined
|
when: http_proxy is defined
|
||||||
|
|
||||||
- name: Install packages requirements for bootstrap
|
- name: Install libselinux-python and yum-utils for bootstrap
|
||||||
yum:
|
yum:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
- epel-release
|
- yum-utils
|
||||||
when:
|
when:
|
||||||
- not is_atomic
|
- not is_atomic
|
||||||
|
|
||||||
|
- name: Check python-pip package
|
||||||
|
yum:
|
||||||
|
list=python-pip
|
||||||
|
register: package_python_pip
|
||||||
|
when:
|
||||||
|
- not is_atomic
|
||||||
|
|
||||||
|
- name: Install epel-release for bootstrap
|
||||||
|
yum:
|
||||||
|
name: epel-release
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- not is_atomic
|
||||||
|
- package_python_pip.results | length != 0
|
||||||
|
|
||||||
- name: Install pip for bootstrap
|
- name: Install pip for bootstrap
|
||||||
yum:
|
yum:
|
||||||
name: python-pip
|
name: python-pip
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- not is_atomic
|
- not is_atomic
|
||||||
|
- package_python_pip.results | length != 0
|
||||||
|
|||||||
Reference in New Issue
Block a user