From c0043b4f248d8340b40601e06230d94d4c4401ab Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Mon, 23 Oct 2023 11:39:48 +0100 Subject: [PATCH] fix apt cache for ci --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2f927f1..1366ed2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -41,6 +41,7 @@ pkg: "{{ apache_pkgs_absent }}" state: absent update_cache: true + cache_valid_time: 60 when: - apache_pkgs_absent is defined - apache_pkgs_absent != [] @@ -56,6 +57,7 @@ install_recommends: true default_release: buster-backports update_cache: true + cache_valid_time: 60 when: - apache_pkgs_present is defined - ( "apache2" in apache_pkgs_present ) @@ -67,7 +69,8 @@ pkg: "{{ apache_pkgs_present }}" state: present install_recommends: true - update_cache: false + update_cache: true + cache_valid_time: 60 when: - apache_pkgs_present is defined - apache_pkgs_present != [] -- GitLab