From a50f6dbc72f9bea6fb920dd59781811225bcc53e Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 19 Mar 2018 16:08:13 +0100 Subject: [PATCH] Use cache_valid_time for apt module Signed-off-by: Knut Ahlers --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 4aadc4b..b28b324 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,6 +8,7 @@ - name: Ensure https transport to be available apt: name: apt-transport-https + cache_valid_time: 86400 - name: Activate apt-repo apt_repository: @@ -17,7 +18,7 @@ - name: Install docker apt: name: docker-ce - update_cache: yes + cache_valid_time: 86400 - set_fact: docker_global_ipv6: "{{ ansible_eth0.ipv6 | selectattr('scope', 'equalto', 'global') | first }}"