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
358ad092
Commit
358ad092
authored
Sep 26, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash on ubuntu upgrades
parent
56af62f6
Pipeline
#16859
failed with stage
in 9 minutes and 16 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
tasks/apt-clean.yml
tasks/apt-clean.yml
+2
-0
tasks/apt.yml
tasks/apt.yml
+0
-2
tasks/upgrade.yml
tasks/upgrade.yml
+4
-0
No files found.
tasks/apt-clean.yml
View file @
358ad092
...
...
@@ -5,4 +5,6 @@
state
:
absent
autoremove
:
yes
purge
:
yes
environment
:
NEEDRESTART_SUSPEND
:
'
1'
when
:
ansible_os_family == 'Debian'
tasks/apt.yml
View file @
358ad092
-
name
:
clean packages again
include_tasks
:
apt-clean.yml
-
name
:
install aptitude first
become
:
true
apt
:
...
...
tasks/upgrade.yml
View file @
358ad092
...
...
@@ -7,6 +7,8 @@
update_cache
:
true
upgrade
:
dist
when
:
ansible_os_family == 'Debian'
environment
:
NEEDRESTART_SUSPEND
:
'
1'
-
name
:
yum update
become
:
true
yum
:
...
...
@@ -21,6 +23,8 @@
update_cache
:
true
state
:
latest
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
-
name
:
clean packages again after upgrade
include_tasks
:
apt-clean.yml
-
name
:
install a python alternate to prevent ansible problems
become
:
true
apt
:
...
...
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