diff --git a/README.md b/README.md index 5cec7ec..978b832 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ On some hosts you may find that the unattended-upgrade's cronfile `/etc/cron.dai * `unattended_autofix_interrupted_dpkg`: whether on unclean dpkg exit to run `dpkg --force-confold --configure -a` * Default: `true` * `unattended_minimal_steps`: split the upgrade into the smallest possible chunks so that they can be interrupted with SIGUSR1. - * Default: `false` + * Default: `true` * `unattended_install_on_shutdown`: install all unattended-upgrades when the machine is shuting down. * Default: `false` * `unattended_mail`: e-mail address to send information about upgrades or problems with unattended upgrades diff --git a/defaults/main.yml b/defaults/main.yml index 7b2a211..59fcc69 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,7 +27,7 @@ unattended_autofix_interrupted_dpkg: true # they can be interrupted with SIGUSR1. This makes the upgrade # a bit slower but it has the benefit that shutdown while a upgrade # is running is possible (with a small delay) -unattended_minimal_steps: false +unattended_minimal_steps: true #Unattended-Upgrade::InstallOnShutdown # Install all unattended-upgrades when the machine is shuting down diff --git a/templates/unattended-upgrades.j2 b/templates/unattended-upgrades.j2 index 3df60da..0b0d218 100644 --- a/templates/unattended-upgrades.j2 +++ b/templates/unattended-upgrades.j2 @@ -27,13 +27,11 @@ Unattended-Upgrade::Package-Blacklist { Unattended-Upgrade::AutoFixInterruptedDpkg "false"; {% endif %} -{% if unattended_minimal_steps %} // Split the upgrade into the smallest possible chunks so that // they can be interrupted with SIGUSR1. This makes the upgrade // a bit slower but it has the benefit that shutdown while a upgrade // is running is possible (with a small delay) -Unattended-Upgrade::MinimalSteps "true"; -{% endif %} +Unattended-Upgrade::MinimalSteps "{{ unattended_minimal_steps | lower }}"; {% if unattended_install_on_shutdown %} // Install all unattended-upgrades when the machine is shuting down