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'