diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-12 18:29:15 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-12 18:29:15 +0200 |
commit | 56f38692ba2e25384537410566ca2aa57f9fc895 (patch) | |
tree | 9dd682021e3b6f9f481a397de86b1d5ab35a8583 | |
parent | fix some ansible-lint warnings (diff) | |
download | infra-ansible-56f38692ba2e25384537410566ca2aa57f9fc895.tar.gz infra-ansible-56f38692ba2e25384537410566ca2aa57f9fc895.zip |
apt: unattended upgrades are optional
-rw-r--r-- | roles/apt/defaults/main.yml | 1 | ||||
-rw-r--r-- | roles/apt/tasks/main.yml | 1 |
2 files changed, 2 insertions, 0 deletions
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 |