Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
5e2c14e9
Commit
5e2c14e9
authored
6 years ago
by
Markus Teufelberger
Browse files
Options
Downloads
Patches
Plain Diff
bootstrap-os: simplify pip3 installation on coreos
parent
5b5546ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/bootstrap-os/files/runner
+0
-3
0 additions, 3 deletions
roles/bootstrap-os/files/runner
roles/bootstrap-os/tasks/bootstrap-coreos.yml
+11
-19
11 additions, 19 deletions
roles/bootstrap-os/tasks/bootstrap-coreos.yml
with
11 additions
and
22 deletions
roles/bootstrap-os/files/runner
deleted
100644 → 0
+
0
−
3
View file @
5b5546ad
#!/bin/bash
BINDIR
=
"/opt/bin"
LD_LIBRARY_PATH
=
$BINDIR
/pypy3/lib:
$LD_LIBRARY_PATH
$BINDIR
/pypy3/bin/
$(
basename
$0
)
$@
This diff is collapsed.
Click to expand it.
roles/bootstrap-os/tasks/bootstrap-coreos.yml
+
11
−
19
View file @
5e2c14e9
...
...
@@ -23,27 +23,19 @@
tags
:
-
facts
-
name
:
Bootstrap | Check if we need to install pip
shell
:
"
pip3
--version"
register
:
need_pip
failed_when
:
false
changed_when
:
false
check_mode
:
no
tags
:
-
facts
environment
:
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
-
name
:
Bootstrap | Install pip3
command
:
"
{{
ansible_python_interpreter
}}
-m
ensurepip"
args
:
creates
:
"
{{
bin_dir
}}/pypy3/bin/pip3"
register
:
pip_installed
-
name
:
Bootstrap | Install pip3 link
file
:
src
:
"
{{
bin_dir
}}/pypy3/bin/pip3"
dest
:
"
{{
bin_dir
}}/pip3"
mode
:
0755
when
:
need_pip.rc !=
0
state
:
link
when
:
pip_installed.changed
-
name
:
Install required python modules
pip
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment