Switching to variables for debian update timers
This commit is contained in:
parent
53804e6cf1
commit
65c015112d
4 changed files with 21 additions and 5 deletions
|
@ -71,6 +71,22 @@ base_core_root_ca_url: ""
|
||||||
# Enables the installation of the cockpit web management package(s)
|
# Enables the installation of the cockpit web management package(s)
|
||||||
base_core_web_management: false
|
base_core_web_management: false
|
||||||
|
|
||||||
|
# ******
|
||||||
|
# Debian
|
||||||
|
# ******
|
||||||
|
|
||||||
|
# Automatic Updates
|
||||||
|
# =============
|
||||||
|
|
||||||
|
# commands
|
||||||
|
# --------
|
||||||
|
|
||||||
|
base_debian_automatic_updates_download: "02:00"
|
||||||
|
base_debian_automatic_updates_download_randomizer: "5m"
|
||||||
|
base_debian_automatic_updates_update: "02:15"
|
||||||
|
base_debian_automatic_updates_update_randomizer: "5m"
|
||||||
|
base_debian_automatic_updates_reboot: "03:30"
|
||||||
|
|
||||||
# ******
|
# ******
|
||||||
# RedHat
|
# RedHat
|
||||||
# ******
|
# ******
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/apt/apt.conf.d/50unattended-upgrades
|
path: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||||
regexp: '^\/?\/?Unattended-Upgrade::Automatic-Reboot-Time '
|
regexp: '^\/?\/?Unattended-Upgrade::Automatic-Reboot-Time '
|
||||||
line: 'Unattended-Upgrade::Automatic-Reboot-Time "03:30";'
|
line: "Unattended-Upgrade::Automatic-Reboot-Time \"{{ base_debian_automatic_updates_reboot }}\";"
|
||||||
|
|
||||||
- name: Ensure directory exists for daily download timer
|
- name: Ensure directory exists for daily download timer
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=
|
OnCalendar=
|
||||||
OnCalendar=02:15
|
OnCalendar={{ base_debian_automatic_updates_update }}
|
||||||
RandomizedDelaySec=0
|
RandomizedDelaySec={{ base_debian_automatic_updates_update_randomizer }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=
|
OnCalendar=
|
||||||
OnCalendar=02:00
|
OnCalendar={{ base_debian_automatic_updates_download }}
|
||||||
RandomizedDelaySec=0
|
RandomizedDelaySec={{ base_debian_automatic_updates_download_randomizer }}
|
||||||
|
|
Loading…
Reference in a new issue