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
4da0f77a
Commit
4da0f77a
authored
Dec 08, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option to keep distro
parent
1b3dab35
Pipeline
#18513
failed with stage
in 16 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
defaults/main.yml
defaults/main.yml
+1
-0
tasks/utility.yml
tasks/utility.yml
+3
-3
No files found.
defaults/main.yml
View file @
4da0f77a
...
@@ -34,3 +34,4 @@ kernel_params: []
...
@@ -34,3 +34,4 @@ kernel_params: []
nfs
:
false
nfs
:
false
docker_root
:
/var/lib/docker
docker_root
:
/var/lib/docker
testing
:
false
testing
:
false
keep_distro
:
false
tasks/utility.yml
View file @
4da0f77a
...
@@ -76,15 +76,15 @@
...
@@ -76,15 +76,15 @@
-
name
:
keep old distribution
-
name
:
keep old distribution
set_fact
:
set_fact
:
target_distribution
:
'
{{
ansible_distribution_release
}}'
target_distribution
:
'
{{
ansible_distribution_release
}}'
when
:
not upgrade or ansible_distribution_release == 'sid'
when
:
not upgrade or ansible_distribution_release == 'sid'
or keep_distro
-
name
:
move to jammy
-
name
:
move to jammy
set_fact
:
set_fact
:
target_distribution
:
'
jammy'
target_distribution
:
'
jammy'
when
:
ansible_distribution == 'Ubuntu' and upgrade
when
:
ansible_distribution == 'Ubuntu' and upgrade
and not keep_distro
-
name
:
move to bullseye
-
name
:
move to bullseye
set_fact
:
set_fact
:
target_distribution
:
'
bullseye'
target_distribution
:
'
bullseye'
when
:
ansible_distribution == 'Debian' and upgrade and ansible_distribution_release != 'sid'
when
:
ansible_distribution == 'Debian' and upgrade and ansible_distribution_release != 'sid'
and not keep_distro
-
name
:
系统源 (apt)
-
name
:
系统源 (apt)
become
:
true
become
:
true
template
:
template
:
...
...
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