Skip to content

Commit

Permalink
remove cri-o using crio_bin_files
Browse files Browse the repository at this point in the history
  • Loading branch information
yckaolalala committed Jun 2, 2023
1 parent f25b6fc commit 5edd0ae
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions roles/container-engine/cri-o/tasks/reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5edd0ae

Please sign in to comment.