Skip to content

Commit

Permalink
Remove the archived debian apt repository (#11220)
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
Co-authored-by: Kay Yan <kay.yan@daocloud.io>
  • Loading branch information
k8s-infra-cherrypick-robot and yankay authored May 21, 2024
1 parent e5fc8a9 commit dd7681c
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 @@ -66,6 +66,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 dd7681c

Please sign in to comment.