Commit 04d70631 authored by Bernhard Geier's avatar Bernhard Geier

Revert "unattended_upgrades: reboot on fridays if host has no variable "vm_id""

This reverts commit c2c67d71.

Alle Server MÜSSEN eine vm_id haben
parent 02353bab
......@@ -27,7 +27,7 @@
- name: Let restart server once a week but not all at the same time
name: weekly restart
weekday: "{{ (vm_id|default(0)-2)%7 }}"
weekday: "{{(vm_id-2)%7}}"
hour: "3"
minute: "{{ (vm_id|default(0)*2)%30+30 }}"
minute: "{{(vm_id*2)%30+30}}"
job: "if [ -f /var/run/reboot-required ]; then /sbin/shutdown -r +5; fi"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment