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
66735d47
Commit
66735d47
authored
Jun 21, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker compose plugin
parent
d4489163
Pipeline
#14119
failed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
tasks/docker.yml
tasks/docker.yml
+3
-13
No files found.
tasks/docker.yml
View file @
66735d47
...
...
@@ -36,7 +36,7 @@
-
name
:
安装 Docker (apt)
become
:
true
apt
:
name
:
docker-ce
name
:
docker-ce
,docker-compose-plugin
state
:
latest
update_cache
:
yes
when
:
ansible_os_family == 'Debian'
...
...
@@ -67,14 +67,14 @@
-
name
:
安装 Docker (yum)
become
:
true
yum
:
name
:
docker-ce,docker-ce-cli,containerd.io
name
:
docker-ce,docker-ce-cli,containerd.io
,docker-compose-plugin
update_cache
:
yes
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major ==
2
notify
:
restart_docker
-
name
:
安装 Docker (dnf)
become
:
true
dnf
:
name
:
docker-ce,docker-ce-cli,containerd.io
name
:
docker-ce,docker-ce-cli,containerd.io
,docker-compose-plugin
update_cache
:
yes
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
notify
:
restart_docker
...
...
@@ -97,16 +97,6 @@
name
:
docker-compose
executable
:
pip3
when
:
ansible_python.version.major ==
2
-
name
:
docker-compose v2 Creates directory
file
:
path
:
'
{{ansible_user_dir}}/.docker/cli-plugins'
state
:
directory
recurse
:
true
-
name
:
docker-compose v2
get_url
:
url
:
'
https://cdn02.moecube.com:444/init/docker-compose-linux-{{ansible_architecture}}'
dest
:
'
{{ansible_user_dir}}/.docker/cli-plugins/docker-compose'
mode
:
'
0755'
-
name
:
docker 创建目录
become
:
true
file
:
...
...
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