From 56f38692ba2e25384537410566ca2aa57f9fc895 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 12 Aug 2023 18:29:15 +0200 Subject: apt: unattended upgrades are optional --- roles/apt/defaults/main.yml | 1 + roles/apt/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) (limited to 'roles/apt') diff --git a/roles/apt/defaults/main.yml b/roles/apt/defaults/main.yml index 0026b08..7e833ce 100644 --- a/roles/apt/defaults/main.yml +++ b/roles/apt/defaults/main.yml @@ -1,3 +1,4 @@ apt_extra_packages: [] +apt_unattended: true apt_unattended_reboot: true apt_unattended_reboot_time: "02:00" diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 6511c44..5d45adb 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -28,3 +28,4 @@ - name: Configure unattended-upgrades ansible.builtin.include_tasks: unattended_upgrades.yml + when: apt_unattended -- cgit v1.2.3