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
7e4d3034
Commit
7e4d3034
authored
Feb 01, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update focal docker
parent
332787aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
40 deletions
+11
-40
tasks/docker.yml
tasks/docker.yml
+11
-40
No files found.
tasks/docker.yml
View file @
7e4d3034
...
...
@@ -9,24 +9,11 @@
-
name
:
clean apt Docker
become
:
true
apt
:
name
:
docker,docker-engine,docker.io,
containerd,runc,bridge-utils
name
:
docker,docker-engine,docker.io,
docker-io,docker-ee
state
:
absent
autoremove
:
yes
purge
:
yes
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal'
-
name
:
clean apt Docker for focal
become
:
true
apt
:
name
:
docker-ce,docker-ee
state
:
absent
autoremove
:
yes
purge
:
yes
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
-
name
:
Docker apt 源公钥
become
:
true
apt_key
:
url
:
'
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}/gpg'
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal'
when
:
ansible_os_family == 'Debian'
-
name
:
target distribution for non-sid
set_fact
:
docker_distribution
:
'
{{
ansible_distribution_release|lower
}}'
...
...
@@ -35,45 +22,29 @@
set_fact
:
docker_distribution
:
buster
when
:
ansible_distribution_release == 'sid'
-
name
:
Docker apt 源
become
:
true
apt_repository
:
repo
:
'
deb
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}
{{
docker_distribution
}}
stable'
filename
:
docker
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal'
-
name
:
Docker apt 源 清理
-
name
:
Docker apt 源公钥
become
:
true
apt_repository
:
repo
:
'
deb
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}
{{
docker_distribution
}}
stable'
filename
:
docker
state
:
absent
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
-
name
:
Docker apt 源 清理
apt_key
:
url
:
'
{{mirror_docker}}/linux/{{
docker_distribution
}}/gpg'
when
:
ansible_os_family == 'Debian'
-
name
:
Docker apt 源
become
:
true
apt_repository
:
repo
:
'
deb
[arch=amd64]
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}
{{
docker_distribution
}}
stable'
repo
:
'
deb
{{mirror_docker}}/linux/{{
docker_distribution
}}
{{
docker_distribution
}}
stable'
filename
:
docker
state
:
absent
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
when
:
ansible_os_family == 'Debian'
-
name
:
安装 Docker (apt)
become
:
true
apt
:
name
:
docker-ce
update_cache
:
yes
when
:
ansible_os_family == 'Debian'
and ansible_distribution_release != 'focal'
when
:
ansible_os_family == 'Debian'
notify
:
restart_docker
-
name
:
Docker extra packages
become
:
true
apt
:
name
:
python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal' and ansible_distribution_release != 'sid'
-
name
:
安装 Docker (focal)
become
:
true
apt
:
name
:
docker.io
update_cache
:
yes
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
notify
:
restart_docker
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'sid'
-
name
:
clean yum Docker
become
:
true
yum
:
...
...
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