forked from infra/ansible
uau: make reboot configurable
This commit is contained in:
parent
c906c8072c
commit
8edc26cc74
3
roles/uau/defaults/main.yml
Normal file
3
roles/uau/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
uau_reboot: "true"
|
@ -110,7 +110,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
|||||||
|
|
||||||
// Automatically reboot *WITHOUT CONFIRMATION* if
|
// Automatically reboot *WITHOUT CONFIRMATION* if
|
||||||
// the file /var/run/reboot-required is found after the upgrade
|
// the file /var/run/reboot-required is found after the upgrade
|
||||||
Unattended-Upgrade::Automatic-Reboot "true";
|
Unattended-Upgrade::Automatic-Reboot "{{ uau_reboot }}";
|
||||||
|
|
||||||
// Automatically reboot even if there are users currently logged in
|
// Automatically reboot even if there are users currently logged in
|
||||||
// when Unattended-Upgrade::Automatic-Reboot is set to true
|
// when Unattended-Upgrade::Automatic-Reboot is set to true
|
||||||
|
Loading…
Reference in New Issue
Block a user