From 6c22cfb726165f5c20cfa3b4d0934932efe0ca50 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 25 May 2021 22:41:58 +0100 Subject: [PATCH] Enable automatic-updates --- roles/debian/tasks/packages-cli.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/debian/tasks/packages-cli.yml b/roles/debian/tasks/packages-cli.yml index 5621925..060b7b7 100644 --- a/roles/debian/tasks/packages-cli.yml +++ b/roles/debian/tasks/packages-cli.yml @@ -47,3 +47,14 @@ ansible.builtin.lineinfile: path: /etc/zsh/zprofile line: emulate sh -c 'source /etc/profile' +- name: Enable automatic update check + become: true + ansible.builtin.lineinfile: + path: /etc/apt/apt.conf.d/10periodic + line: "APT::Periodic::Update-Package-Lists \"1\";" + create: yes +- name: Enable automatic install of updates + become: true + ansible.builtin.lineinfile: + path: /etc/apt/apt.conf.d/10periodic + line: "APT::Periodic::Unattended-Upgrade \"1\";"