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
c5e6e26e
Commit
c5e6e26e
authored
Feb 01, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test bullseye
parent
332787aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
52 deletions
+15
-52
tasks/docker.yml
tasks/docker.yml
+13
-42
tasks/utility.yml
tasks/utility.yml
+2
-10
No files found.
tasks/docker.yml
View file @
c5e6e26e
...
@@ -9,71 +9,42 @@
...
@@ -9,71 +9,42 @@
-
name
:
clean apt Docker
-
name
:
clean apt Docker
become
:
true
become
:
true
apt
:
apt
:
name
:
docker,docker-engine,docker.io,
containerd,runc,bridge-utils
name
:
docker,docker-engine,docker.io,
docker-io,docker-ee
state
:
absent
state
:
absent
autoremove
:
yes
autoremove
:
yes
purge
:
yes
purge
:
yes
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal'
when
:
ansible_os_family == 'Debian'
-
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'
-
name
:
target distribution for non-sid
-
name
:
target distribution for non-sid
set_fact
:
set_fact
:
docker_distribution
:
'
{{
ansible_distribution_release|lower
}}'
docker_distribution
:
'
{{
ansible_distribution_release|lower
}}'
when
:
ansible_distribution_release != 'sid'
when
:
ansible_distribution_release != 'sid'
and ansible_distribution_release != 'bullseye'
-
name
:
target distribution for sid
-
name
:
target distribution for sid
set_fact
:
set_fact
:
docker_distribution
:
buster
docker_distribution
:
buster
when
:
ansible_distribution_release == 'sid'
when
:
ansible_distribution_release == 'sid' or ansible_distribution_release == 'bullseye'
-
name
:
Docker apt 源
-
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 源 清理
become
:
true
become
:
true
apt_repository
:
apt_key
:
repo
:
'
deb
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}
{{
docker_distribution
}}
stable'
url
:
'
{{mirror_docker}}/linux/{{
docker_distribution
}}/gpg'
filename
:
docker
when
:
ansible_os_family == 'Debian'
state
:
absent
-
name
:
Docker apt 源
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
-
name
:
Docker apt 源 清理
become
:
true
become
:
true
apt_repository
:
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
filename
:
docker
state
:
absent
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
-
name
:
安装 Docker (apt)
-
name
:
安装 Docker (apt)
become
:
true
become
:
true
apt
:
apt
:
name
:
docker-ce
name
:
docker-ce
update_cache
:
yes
update_cache
:
yes
when
:
ansible_os_family == 'Debian'
and ansible_distribution_release != 'focal'
when
:
ansible_os_family == 'Debian'
notify
:
restart_docker
notify
:
restart_docker
-
name
:
Docker extra packages
-
name
:
Docker extra packages
become
:
true
become
:
true
apt
:
apt
:
name
:
python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname
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'
when
:
ansible_os_family == 'Debian' 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
-
name
:
clean yum Docker
-
name
:
clean yum Docker
become
:
true
become
:
true
yum
:
yum
:
...
...
tasks/utility.yml
View file @
c5e6e26e
...
@@ -70,9 +70,9 @@
...
@@ -70,9 +70,9 @@
set_fact
:
set_fact
:
target_distribution
:
'
focal'
target_distribution
:
'
focal'
when
:
ansible_distribution == 'Ubuntu' and upgrade
when
:
ansible_distribution == 'Ubuntu' and upgrade
-
name
:
move to bu
ster
-
name
:
move to bu
llseye
set_fact
:
set_fact
:
target_distribution
:
'
bu
ster
'
target_distribution
:
'
bu
llseye
'
when
:
ansible_distribution == 'Debian' and upgrade and ansible_distribution_release != 'sid'
when
:
ansible_distribution == 'Debian' and upgrade and ansible_distribution_release != 'sid'
-
name
:
系统源 (apt)
-
name
:
系统源 (apt)
become
:
true
become
:
true
...
@@ -101,14 +101,6 @@
...
@@ -101,14 +101,6 @@
autoremove
:
yes
autoremove
:
yes
purge
:
yes
purge
:
yes
when
:
ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_release != 'focal'
when
:
ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_release != 'focal'
-
name
:
remove not proper installed wireguard
become
:
true
apt
:
name
:
wireguard,wireguard-tools,wireguard-dkms
state
:
absent
autoremove
:
yes
purge
:
yes
when
:
ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_release != 'focal'
-
name
:
remove not proper installed wireguard repo
-
name
:
remove not proper installed wireguard repo
become
:
true
become
:
true
file
:
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