remove cri-o using crio_bin_files (#10182)

pull/10188/head
yun 2023-06-05 11:02:42 +08:00 committed by GitHub
parent edc73bc3c8
commit 5ebd305d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 14 deletions

View File

@ -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