Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
4f3d5d38
Commit
4f3d5d38
authored
Apr 20, 2018
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem with pip3
parent
a45732c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
group_vars/python.yml
group_vars/python.yml
+3
-0
roles/python_stack/tasks/fitting.yml
roles/python_stack/tasks/fitting.yml
+1
-1
roles/python_stack/tasks/python.yml
roles/python_stack/tasks/python.yml
+17
-23
No files found.
group_vars/python.yml
View file @
4f3d5d38
...
...
@@ -14,6 +14,7 @@ python3pkg:
-
python3-setuptools
-
python3-sphinx
-
python3-tox
-
python3-pip
python3pip
:
-
brewer2mpl
...
...
@@ -45,3 +46,5 @@ python2pip:
-
notebook
-
pandas
-
sklearn
pip3bin
:
/usr/local/bin/pip3
roles/python_stack/tasks/fitting.yml
View file @
4f3d5d38
...
...
@@ -13,7 +13,7 @@
-
name
:
install fitting via pip3
become
:
yes
pip
:
executable
:
pip3
executable
:
"
{{
pip3bin
}}"
state
:
present
name
:
"
{{
item
}}"
with_items
:
...
...
roles/python_stack/tasks/python.yml
View file @
4f3d5d38
...
...
@@ -26,19 +26,13 @@
-
"
{{
python2pkg
}}"
-
"
{{
python3pkg
}}"
-
name
:
Update setuptools
become
:
yes
command
:
easy_install -U setuptools
register
:
command_result
changed_when
:
not command_result.stdout.find("Adding setuptools")
# not working
-
name
:
upgrade pip2
# install --upgrade pip
pip
:
name
:
pip
state
:
latest
become
:
yes
tags
:
-
skip_ansible_lint
# - name: upgrade pip2 # install --upgrade pip
# pip:
# name: pip
# state: latest
# become: yes
# tags:
# - skip_ansible_lint
-
name
:
install pip packages Python
2
pip
:
...
...
@@ -47,19 +41,19 @@
become
:
yes
with_items
:
"
{{python2pip}}"
-
name
:
upgrade pip3
pip
:
executable
:
pip
3
state
:
latest
name
:
pip
become
:
yes
tags
:
-
skip_ansible_lint
#
- name: upgrade pip3
#
pip:
# executable: pip-
3
#
state: latest
#
name: pip
#
become: yes
#
tags:
#
- skip_ansible_lint
-
name
:
install pip packages Python
2
become
:
yes
pip
:
executable
:
pip3
executable
:
"
{{
pip3bin
}}"
name
:
"
{{
item
}}"
state
:
present
become
:
yes
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