Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Freifunk Ingolstadt
FFIN Gateway - Ansible Rollen
Commits
c2c67d71
Commit
c2c67d71
authored
Nov 08, 2019
by
Bernhard Geier
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unattended_upgrades: reboot on fridays if host has no variable "vm_id"
parent
6cd6f94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
unattended_upgrades/tasks/main.yml
unattended_upgrades/tasks/main.yml
+2
-2
No files found.
unattended_upgrades/tasks/main.yml
View file @
c2c67d71
...
...
@@ -21,7 +21,7 @@
-
name
:
Let restart server once a week but not all at the same time
cron
:
name
:
weekly restart
weekday
:
"
{{(vm_id-2)%7}}"
weekday
:
"
{{
(vm_id
|default(0)
-2)%7
}}"
hour
:
"
3"
minute
:
"
{{(vm_id*2)%30+30}}"
minute
:
"
{{
(vm_id
|default(0)
*2)%30+30
}}"
job
:
"
if
[
-f
/var/run/reboot-required
];
then
/sbin/shutdown
-r
+5;
fi"
Citronalco
@geierb
mentioned in commit
04d70631
·
Oct 23, 2020
mentioned in commit
04d70631
mentioned in commit 04d7063116836541f3ac181cb648f8cf4f16f91a
Toggle commit list
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