Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
a588aa16
Commit
a588aa16
authored
3 years ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Add remove old kernel configuration
parent
2e164aa2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/sysconfig/handlers/main.yml
+14
-9
14 additions, 9 deletions
ansible/roles/sysconfig/handlers/main.yml
ansible/roles/sysconfig/tasks/main.yml
+7
-0
7 additions, 0 deletions
ansible/roles/sysconfig/tasks/main.yml
with
21 additions
and
9 deletions
ansible/roles/sysconfig/handlers/main.yml
+
14
−
9
View file @
a588aa16
...
...
@@ -8,6 +8,10 @@
retries
:
60
until
:
apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
-
name
:
systemd daemon reload
systemd
:
daemon_reload
:
true
-
name
:
update locale
command
:
locale-gen
...
...
@@ -21,6 +25,16 @@
name
:
sshd
state
:
restarted
-
name
:
restart unattended-upgrades
service
:
name
:
unattended-upgrades
state
:
restarted
-
name
:
restart ntp
service
:
name
:
ntp
state
:
restarted
-
name
:
update cache
apt
:
force_apt_get
:
true
...
...
@@ -30,13 +44,4 @@
retries
:
60
until
:
apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
-
name
:
systemd daemon reload
systemd
:
daemon_reload
:
true
-
name
:
restart ntp
service
:
name
:
ntp
state
:
restarted
...
This diff is collapsed.
Click to expand it.
ansible/roles/sysconfig/tasks/main.yml
+
7
−
0
View file @
a588aa16
...
...
@@ -43,6 +43,13 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
-
name
:
remove old kernel with unattended-upgrades
replace
:
dest
:
/etc/apt/apt.conf.d/50unattended-upgrades
regexp
:
'
^//Unattended-Upgrade::Remove-Unused-Kernel-Packages.*$'
replace
:
'
Unattended-Upgrade::Remove-Unused-Kernel-Packages
"true";'
notify
:
restart unattended-upgrades
-
name
:
enable root login via ssh with key
replace
:
dest
:
/etc/ssh/sshd_config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment