Update the version of pypy used on CoreOS bootstrap-os (#3922)

* Update the version of pypy used on CoreOS bootstrap-os

* update the pip installation process on CoreOS
This commit is contained in:
MarkusTeufelberger
2019-01-02 15:17:20 +01:00
committed by Kubernetes Prow Robot
parent 5834e609a6
commit d58b338bd8
4 changed files with 12 additions and 19041 deletions

View File

@@ -24,7 +24,7 @@
- facts
- name: Bootstrap | Check if we need to install pip
shell: "pip --version"
shell: "pip3 --version"
register: need_pip
failed_when: false
changed_when: false
@@ -34,26 +34,14 @@
environment:
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
- name: Bootstrap | Copy get-pip.py
copy:
src: get-pip.py
dest: ~/get-pip.py
when: need_pip.rc != 0
- name: Bootstrap | Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip.rc != 0
- name: Bootstrap | Remove get-pip.py
file:
path: ~/get-pip.py
state: absent
shell: "{{ ansible_python_interpreter }} -m ensurepip"
when: need_pip.rc != 0
- name: Bootstrap | Install pip launcher
copy:
src: runner
dest: "{{ bin_dir }}/pip"
dest: "{{ bin_dir }}/pip3"
mode: 0755
when: need_pip.rc != 0
@@ -61,7 +49,7 @@
pip:
name: "{{ item }}"
extra_args: "{{ pip_extra_args | default(omit) }}"
with_items: "{{pip_python_coreos_modules}}"
with_items: "{{ pip_python_coreos_modules }}"
environment:
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"