diff --git a/defaults/main.yaml b/defaults/main.yaml index 70a3e63..107d7f9 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1,2 +1,3 @@ --- unattended_upgrades: true +reboot_after_updates: false diff --git a/tasks/main.yaml b/tasks/main.yaml index ff77488..ed6957b 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -15,3 +15,7 @@ when: - unattended_upgrades - not ansible_bender is defined + +- name: reboot after updates + reboot: + when: reboot_after_updates