feat: improve auto update condition
This commit is contained in:
parent
3df3b6f7e0
commit
c2b11be16e
1 changed files with 2 additions and 0 deletions
|
|
@ -40,10 +40,12 @@ Unattended-Upgrade::Remove-Unused-Kernel-Packages "{{ apt_remove_unused_kernel_p
|
||||||
Unattended-Upgrade::Remove-New-Unused-Dependencies "{{ apt_remove_new_unused_dependancies | default('true') }}";
|
Unattended-Upgrade::Remove-New-Unused-Dependencies "{{ apt_remove_new_unused_dependancies | default('true') }}";
|
||||||
Unattended-Upgrade::Remove-Unused-Dependencies "{{ apt_remove_unused_dependancies | default('true') }}";
|
Unattended-Upgrade::Remove-Unused-Dependencies "{{ apt_remove_unused_dependancies | default('true') }}";
|
||||||
|
|
||||||
|
{% if apt_automatic_reboot %}
|
||||||
# auto reboot
|
# auto reboot
|
||||||
Unattended-Upgrade::Automatic-Reboot "{{ apt_automatic_reboot }}";
|
Unattended-Upgrade::Automatic-Reboot "{{ apt_automatic_reboot }}";
|
||||||
Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ apt_automatic_reboot_with_users | default('true') }}";
|
Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ apt_automatic_reboot_with_users | default('true') }}";
|
||||||
Unattended-Upgrade::Automatic-Reboot-Time "{{ apt_automatic_reboot_time }}";
|
Unattended-Upgrade::Automatic-Reboot-Time "{{ apt_automatic_reboot_time }}";
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# syslog
|
# syslog
|
||||||
Unattended-Upgrade::SyslogEnable "{{ apt_syslog_enable | default('true') }}";
|
Unattended-Upgrade::SyslogEnable "{{ apt_syslog_enable | default('true') }}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue