Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ucegg
ansible
Commits
4f3d5d38
Commit
4f3d5d38
authored
Apr 20, 2018
by
julian.gethmann
Browse files
Fix problem with pip3
parent
a45732c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
group_vars/python.yml
View file @
4f3d5d38
...
@@ -14,6 +14,7 @@ python3pkg:
...
@@ -14,6 +14,7 @@ python3pkg:
-
python3-setuptools
-
python3-setuptools
-
python3-sphinx
-
python3-sphinx
-
python3-tox
-
python3-tox
-
python3-pip
python3pip
:
python3pip
:
-
brewer2mpl
-
brewer2mpl
...
@@ -45,3 +46,5 @@ python2pip:
...
@@ -45,3 +46,5 @@ python2pip:
-
notebook
-
notebook
-
pandas
-
pandas
-
sklearn
-
sklearn
pip3bin
:
/usr/local/bin/pip3
roles/python_stack/tasks/fitting.yml
View file @
4f3d5d38
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-
name
:
install fitting via pip3
-
name
:
install fitting via pip3
become
:
yes
become
:
yes
pip
:
pip
:
executable
:
pip3
executable
:
"
{{
pip3bin
}}"
state
:
present
state
:
present
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
with_items
:
with_items
:
...
...
roles/python_stack/tasks/python.yml
View file @
4f3d5d38
...
@@ -26,19 +26,13 @@
...
@@ -26,19 +26,13 @@
-
"
{{
python2pkg
}}"
-
"
{{
python2pkg
}}"
-
"
{{
python3pkg
}}"
-
"
{{
python3pkg
}}"
-
name
:
Update setuptools
# - name: upgrade pip2 # install --upgrade pip
become
:
yes
# pip:
command
:
easy_install -U setuptools
# name: pip
register
:
command_result
# state: latest
changed_when
:
not command_result.stdout.find("Adding setuptools")
# not working
# become: yes
# tags:
-
name
:
upgrade pip2
# install --upgrade pip
# - skip_ansible_lint
pip
:
name
:
pip
state
:
latest
become
:
yes
tags
:
-
skip_ansible_lint
-
name
:
install pip packages Python
2
-
name
:
install pip packages Python
2
pip
:
pip
:
...
@@ -47,19 +41,19 @@
...
@@ -47,19 +41,19 @@
become
:
yes
become
:
yes
with_items
:
"
{{python2pip}}"
with_items
:
"
{{python2pip}}"
-
name
:
upgrade pip3
#
- name: upgrade pip3
pip
:
#
pip:
executable
:
pip3
#
executable: pip
-
3
state
:
latest
#
state: latest
name
:
pip
#
name: pip
become
:
yes
#
become: yes
tags
:
#
tags:
-
skip_ansible_lint
#
- skip_ansible_lint
-
name
:
install pip packages Python
2
-
name
:
install pip packages Python
2
become
:
yes
pip
:
pip
:
executable
:
pip3
executable
:
"
{{
pip3bin
}}"
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
state
:
present
state
:
present
become
:
yes
with_items
:
"
{{python3pip}}"
with_items
:
"
{{python3pip}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment