diff --git a/roles/debian/tasks/packages-cli.yml b/roles/debian/tasks/packages-cli.yml index 060b7b7..478bb8b 100644 --- a/roles/debian/tasks/packages-cli.yml +++ b/roles/debian/tasks/packages-cli.yml @@ -51,10 +51,12 @@ become: true ansible.builtin.lineinfile: path: /etc/apt/apt.conf.d/10periodic + regex: "APT::Periodic::Update-Package-Lists " 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 + regex: "APT::Periodic::Unattended-Upgrade " line: "APT::Periodic::Unattended-Upgrade \"1\";"