Skip to content
Snippets Groups Projects
Commit 5e2c14e9 authored by Markus Teufelberger's avatar Markus Teufelberger
Browse files

bootstrap-os: simplify pip3 installation on coreos

parent 5b5546ad
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
BINDIR="/opt/bin"
LD_LIBRARY_PATH=$BINDIR/pypy3/lib:$LD_LIBRARY_PATH $BINDIR/pypy3/bin/$(basename $0) $@
...@@ -23,27 +23,19 @@ ...@@ -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: - name: Bootstrap | Install pip3 link
- facts file:
environment: src: "{{ bin_dir }}/pypy3/bin/pip3"
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
- name: Bootstrap | Install pip
shell: "{{ ansible_python_interpreter }} -m ensurepip"
when: need_pip.rc != 0
- 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment