Skip to content

Commit

Permalink
Remove the archived debian apt repository (kubernetes-sigs#11088)
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
  • Loading branch information
yankay authored and pedromcpedro committed May 8, 2024
1 parent 20972a7 commit ec0873b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/container-engine/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@
environment: "{{ proxy_env }}"
when: ansible_pkg_mgr == 'apt'

# ref to https://github.com/kubernetes-sigs/kubespray/issues/11086
- name: Remove the archived debian apt repository
lineinfile:
path: /etc/apt/sources.list
regexp: 'buster-backports'
state: absent
backup: yes
when:
- ansible_os_family == 'Debian'
- ansible_distribution_release == "buster"

- name: Ensure docker-ce repository is enabled
apt_repository:
repo: "{{ item }}"
Expand Down

0 comments on commit ec0873b

Please sign in to comment.