Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
7d930fe1
Commit
7d930fe1
authored
Aug 20, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update python
parent
6ac6b54a
Pipeline
#582
passed with stage
in 3 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
tasks/docker.yml
tasks/docker.yml
+5
-6
tasks/pip.yml
tasks/pip.yml
+20
-15
No files found.
tasks/docker.yml
View file @
7d930fe1
...
...
@@ -119,17 +119,16 @@
append
:
true
groups
:
docker
when
:
ansible_user_id != 'root'
-
name
:
docker-compose
-
name
:
docker-compose
requests workaround
become
:
true
pip
:
name
:
docker-compose
when
:
not china_mirror_pip
-
name
:
docker-compose 国内
name
:
requests
extra_args
:
--ignore-installed
when
:
ansible_python.version.major ==
2
-
name
:
docker-compose
become
:
true
pip
:
name
:
docker-compose
extra_args
:
-i https://mirrors.aliyun.com/pypi/simple/
when
:
china_mirror_pip
-
name
:
docker 配置 创建目录
become
:
true
file
:
...
...
tasks/pip.yml
View file @
7d930fe1
...
...
@@ -15,6 +15,26 @@
file
:
path
:
'
{{ansible_user_dir}}/.pip'
state
:
absent
when
:
not china_mirror_pip
-
name
:
pip dir
become
:
true
file
:
path
:
'
{{ansible_user_dir}}/.pip'
state
:
directory
owner
:
'
{{ansible_user_id}}'
group
:
'
{{ansible_user_id}}'
when
:
china_mirror_pip
-
name
:
pip conf for china mirror
become
:
true
copy
:
content
:
|
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
dest
:
'
{{ansible_user_dir}}/.pip/pip.conf'
owner
:
'
{{ansible_user_id}}'
group
:
'
{{ansible_user_id}}'
-
name
:
clean easy install
become
:
true
file
:
...
...
@@ -32,14 +52,6 @@
name
:
pip
executable
:
'
{{pip_executable_install}}'
state
:
latest
when
:
not china_mirror_pip
-
name
:
upgrade pip China
become
:
true
pip
:
name
:
pip
executable
:
'
{{pip_executable_install}}'
state
:
latest
extra_args
:
-i https://mirrors.aliyun.com/pypi/simple/
when
:
china_mirror_pip
-
name
:
pip package list
set_fact
:
...
...
@@ -48,10 +60,3 @@
become
:
true
pip
:
name
:
'
{{pip_package_list}}'
when
:
not china_mirror_pip
-
name
:
pip packages China
become
:
true
pip
:
name
:
'
{{pip_package_list}}'
extra_args
:
-i https://mirrors.aliyun.com/pypi/simple/
when
:
china_mirror_pip
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