From 423ea9a18923250945d166476332037e280b227b Mon Sep 17 00:00:00 2001 From: Zolfa Date: Sat, 16 May 2020 23:42:14 +0200 Subject: [PATCH] roles/gitlab: update cache after apt --- roles/gitlab/tasks/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/gitlab/tasks/main.yaml b/roles/gitlab/tasks/main.yaml index 5966bb9..1266675 100644 --- a/roles/gitlab/tasks/main.yaml +++ b/roles/gitlab/tasks/main.yaml @@ -6,6 +6,9 @@ pkg: - 'gnupg' - 'ca-certificates' + state: 'present' + update_cache: true + cache_valid_time: 3600 tags: - 'packages' @@ -21,6 +24,7 @@ apt_repository: repo: '{{ item }}' state: 'present' + update_cache: true loop: - 'deb https://packages.gitlab.com/gitlab/gitlab-ce/debian/ buster main' - 'deb-src https://packages.gitlab.com/gitlab/gitlab-ce/debian/ buster main'