[unattended] fixup

main
_shirenn 2022-12-22 10:57:36 +01:00
parent d13f1107dd
commit cfc780d90f
3 changed files with 5 additions and 7 deletions

View File

@ -10,12 +10,6 @@ loc_unattended:
loc_needrestart:
override: []
loc_unattended:
reboot: true
loc_needrestart:
override: []
loc_nfs_mount:
mounts:
- ip: "{{ query('ldap', 'ip4', 'tealc', 'san') }}"

View File

@ -4,9 +4,13 @@
vars:
root: "{{ glob_root | default({}) | combine(loc_root | default({})) }}"
ntp_client: "{{ glob_ntp_client | combine(loc_ntp_client | default({})) }}"
needrestart: "{{ glob_needrestart | default({}) | combine(loc_needrestart | default({})) }}"
unattended: "{{ glob_unattended | default({}) | combine(loc_unattended | default({})) }}"
roles:
- root
- common-tools
- sudo
- ntp-client
- root-config
- needrestart
- unattended-upgrades

View File

@ -87,7 +87,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true";
// Automatically reboot *WITHOUT CONFIRMATION* if
// the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "{{ unattended.automatic_reboot | default(false) | ternary("true", "false") }}";
Unattended-Upgrade::Automatic-Reboot "{{ unattended.reboot | default(false) | ternary("true", "false") }}";
// Automatically reboot even if there are users currently logged in
// when Unattended-Upgrade::Automatic-Reboot is set to true