Skip to content

Commit 2f063ac

Browse files
committed
Disable apt cache updates when removing repositories from sources.list
Signed-off-by: Norman Ziegner <[email protected]>
1 parent 9c8f771 commit 2f063ac

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

roles/gitlab/tasks/install.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@
2626
repo: "deb {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
2727
state: "absent"
2828
filename: "gitlab_{{ gitlab_edition }}"
29+
update_cache: false
2930

3031
- name: "Remove GitLab source APT repository from sources.list"
3132
ansible.builtin.apt_repository:
3233
repo: "deb-src {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
3334
state: "absent"
3435
filename: "gitlab_{{ gitlab_edition }}"
36+
update_cache: false
3537

3638
- name: "Add GitLab APT repository"
3739
ansible.builtin.deb822_repository:

roles/zammad/tasks/install.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
repo: "deb https://dl.packager.io/srv/deb/zammad/zammad/{{ zammad_release_channel }}/ubuntu {{ ansible_distribution_version }} main"
4141
state: "absent"
4242
filename: "zammad"
43+
update_cache: false
4344

4445
- name: "Install | Add Zammad DEB repository"
4546
ansible.builtin.deb822_repository:

0 commit comments

Comments
 (0)