bootstrap-os: simplify pip3 installation on coreos

This commit is contained in:
Markus Teufelberger 2019-01-12 15:05:33 +01:00
parent 5b5546adf1
commit 5e2c14e916
2 changed files with 10 additions and 21 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
BINDIR="/opt/bin"
LD_LIBRARY_PATH=$BINDIR/pypy3/lib:$LD_LIBRARY_PATH $BINDIR/pypy3/bin/$(basename $0) $@

View file

@ -23,27 +23,19 @@
tags: tags:
- facts - facts
- name: Bootstrap | Check if we need to install pip - name: Bootstrap | Install pip3
shell: "pip3 --version" command: "{{ ansible_python_interpreter }} -m ensurepip"
register: need_pip args:
failed_when: false creates: "{{ bin_dir }}/pypy3/bin/pip3"
changed_when: false register: pip_installed
check_mode: no
tags:
- facts
environment:
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
- name: Bootstrap | Install pip - name: Bootstrap | Install pip3 link
shell: "{{ ansible_python_interpreter }} -m ensurepip" file:
when: need_pip.rc != 0 src: "{{ bin_dir }}/pypy3/bin/pip3"
- name: Bootstrap | Install pip launcher
copy:
src: runner
dest: "{{ bin_dir }}/pip3" dest: "{{ bin_dir }}/pip3"
mode: 0755 mode: 0755
when: need_pip.rc != 0 state: link
when: pip_installed.changed
- name: Install required python modules - name: Install required python modules
pip: pip: