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
2cb09033
Commit
2cb09033
authored
Jun 22, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install docker-compose from pip3 anytime
parent
68329ecd
Pipeline
#14158
failed with stage
in 9 minutes and 49 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
tasks/docker.yml
tasks/docker.yml
+2
-2
tasks/main.yml
tasks/main.yml
+1
-1
tasks/pip.yml
tasks/pip.yml
+5
-5
No files found.
tasks/docker.yml
View file @
2cb09033
...
...
@@ -67,7 +67,7 @@
-
name
:
安装 Docker (yum)
become
:
true
yum
:
name
:
docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin,
docker-compose,
python-docker
name
:
docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin,python-docker
update_cache
:
yes
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major ==
2
notify
:
restart_docker
...
...
@@ -90,7 +90,7 @@
become
:
true
pip
:
name
:
docker-compose
when
:
ansible_python.version.major ==
3
#
when: ansible_python.version.major == 3
-
name
:
docker 创建目录
become
:
true
file
:
...
...
tasks/main.yml
View file @
2cb09033
...
...
@@ -41,7 +41,7 @@
when
:
ansible_os_family == 'RedHat' and not testing
-
name
:
pip
include_tasks
:
pip.yml
when
:
ansible_python.version.major ==
3
#
when: ansible_python.version.major == 3
-
name
:
nvidia
include_tasks
:
nvidia.yml
when
:
nvidia_driver_version and ansible_os_family == 'Debian'
...
...
tasks/pip.yml
View file @
2cb09033
-
name
:
'
use
pip3'
set_fact
:
pip_executable_install
:
pip3
when
:
ansible_python.version.major ==
3
-
name
:
'
use
pip'
set_fact
:
pip_executable_install
:
pip
when
:
ansible_python.version.major ==
2
#
when: ansible_python.version.major == 3
#
- name: 'use pip'
#
set_fact:
#
pip_executable_install: pip
#
when: ansible_python.version.major == 2
-
name
:
china mirror pip
set_fact
:
china_mirror_pip
:
true
...
...
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