diff --git a/roles/unattended-upgrades/defaults/main.yaml b/roles/unattended-upgrades/defaults/main.yaml index 7bdbca8..9a7b8e6 100644 --- a/roles/unattended-upgrades/defaults/main.yaml +++ b/roles/unattended-upgrades/defaults/main.yaml @@ -77,6 +77,8 @@ unattended_upgrades_mail: "{{ unattended_upgrades_mailto }}" # Default: "now" # unattended_upgrades_automatic_reboot_time: '02:00' +# unattended_upgrades_reboot_with_users: false + # Use apt bandwidth limit feature, this example limits the download # speed to 70kb/sec # unattended_upgrades_download_limit: 70 diff --git a/roles/unattended-upgrades/templates/unattended-upgrades.j2 b/roles/unattended-upgrades/templates/unattended-upgrades.j2 index 230324c..5b3d73e 100644 --- a/roles/unattended-upgrades/templates/unattended-upgrades.j2 +++ b/roles/unattended-upgrades/templates/unattended-upgrades.j2 @@ -44,6 +44,9 @@ Unattended-Upgrade::Automatic-Reboot "{{ unattended_upgrades_automatic_reboot | {% if unattended_upgrades_automatic_reboot_time is defined %} Unattended-Upgrade::Automatic-Reboot-Time "{{ unattended_upgrades_automatic_reboot_time }}"; {% endif %} +{% if unattended_upgrades_reboot_with_users is defined %} +Unattended-Upgrade::Automatic-Reboot-WithUsers "{{ unattended_upgrades_reboot_with_users | lower }}"; +{% endif %} {% if unattended_upgrades_download_limit is defined %} Acquire::http::Dl-Limit "{{ unattended_upgrades_download_limit }}"; {% endif %}