From 62709d3731d15f37750a9dbe97c88003a28ed2c1 Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Sun, 6 Aug 2017 16:24:25 -0400 Subject: [PATCH] Add some custom APT periodic task configuration Ensure that the periodic APT cron task clears out old kernels and does unattended security upgrades --- ubuntu/roles/common/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu/roles/common/tasks/main.yml b/ubuntu/roles/common/tasks/main.yml index df9f60e..91c1b43 100644 --- a/ubuntu/roles/common/tasks/main.yml +++ b/ubuntu/roles/common/tasks/main.yml @@ -54,3 +54,5 @@ - haveged - vnstat - ntp +- name: Ensure that the periodic APT cron task clears out old kernels and does unattended security upgrades + copy: src=10periodic dest=/etc/apt/apt.conf.d/10periodic backup=yes owner=root group=root mode=0644