Browse Source

remove cri-o using crio_bin_files (#10182)

pull/10188/head
yun 1 year ago
committed by GitHub
parent
commit
5ebd305d17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 14 deletions
  1. 17
      roles/container-engine/cri-o/tasks/reset.yml

17
roles/container-engine/cri-o/tasks/reset.yml

@ -81,21 +81,10 @@
tags:
- reset_crio
- name: CRI-O | Remove dpkg hold
dpkg_selections:
name: "{{ item }}"
selection: install
when: ansible_pkg_mgr == 'apt'
changed_when: false
with_items: "{{ crio_packages }}"
tags:
- reset_crio
- name: CRI-O | Uninstall CRI-O package
package:
- name: CRI-O | Remove CRI-O binaries
file:
name: "{{ item }}"
state: absent
when: not is_ostree
with_items: "{{ crio_packages }}"
with_items: "{{ crio_bin_files }}"
tags:
- reset_crio
Loading…
Cancel
Save