From 6fbc87a2eacbe617a31f84ebe8bb3ce551f05794 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 19 Mar 2018 16:13:56 +0100 Subject: [PATCH] Use `cache_valid_time` for apt module Signed-off-by: Knut Ahlers --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 129fc4a..c5041a5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,7 +3,7 @@ - name: Install required packages for autoupdate apt: name: '{{ item }}' - update_cache: yes + cache_valid_time: 86400 with_items: - unattended-upgrades - update-notifier-common