Fixed unattended upgrades and configure time for updates/upgrades

Previously only unattended updates (i.e. apt update) was working. Unattended
upgrades (i.e. apt upgrade) are disabled by default and needed to be enabled
with a config file.
This commit is contained in:
Julian 2022-01-07 17:17:56 +01:00
parent d5a9e6bd05
commit 075823ffb5
No known key found for this signature in database
GPG key ID: 2F811E2338EE029B
5 changed files with 64 additions and 2 deletions

View file

@ -1,2 +1,4 @@
update:
unattended: no
apt_daily_time: "*-*-* {{ 24|random(seed=(inventory_hostname + 'apt_daily_h')) }}:{{ 60|random(seed=(inventory_hostname + 'apt_daily_m')) }}"
apt_daily_upgrade_time: "*-*-* 6:{{ 60|random(seed=(inventory_hostname + 'apt_daily_upgrade_time')) }}"