mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
fix(cri-o): remove kubic repo cleanup that breaks CRI-O reset on Debian (#13675)
This commit is contained in:
@@ -2,55 +2,6 @@
|
||||
- name: Cri-o | load vars
|
||||
import_tasks: load_vars.yml
|
||||
|
||||
- name: CRI-O | Kubic repo name for debian os family
|
||||
set_fact:
|
||||
crio_kubic_debian_repo_name: "{{ ((ansible_facts['distribution'] == 'Ubuntu') | ternary('x', '')) ~ ansible_facts['distribution'] ~ '_' ~ ansible_facts['distribution_version'] }}"
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Remove kubic apt repo
|
||||
apt_repository:
|
||||
repo: "deb http://{{ crio_download_base }}/{{ crio_kubic_debian_repo_name }}/ /"
|
||||
state: absent
|
||||
when: crio_kubic_debian_repo_name is defined
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Remove cri-o apt repo
|
||||
apt_repository:
|
||||
repo: "deb {{ crio_download_crio }}v{{ crio_version }}/{{ crio_kubic_debian_repo_name }}/ /"
|
||||
state: absent
|
||||
filename: devel-kubic-libcontainers-stable-cri-o
|
||||
when: crio_kubic_debian_repo_name is defined
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Remove CRI-O kubic yum repo
|
||||
yum_repository:
|
||||
name: devel_kubic_libcontainers_stable
|
||||
state: absent
|
||||
when: ansible_facts['distribution'] in ["Amazon"]
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Remove CRI-O kubic yum repo
|
||||
yum_repository:
|
||||
name: "devel_kubic_libcontainers_stable_cri-o_v{{ crio_version }}"
|
||||
state: absent
|
||||
when:
|
||||
- ansible_facts['os_family'] == "RedHat"
|
||||
- ansible_facts['distribution'] not in ["Amazon", "Fedora"]
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Run yum-clean-metadata
|
||||
command: yum clean metadata
|
||||
when:
|
||||
- ansible_facts['os_family'] == "RedHat"
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
- name: CRI-O | Remove crictl
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user