Skip to content

Commit

Permalink
[validate-container-engine] check if kubelet is present was not worki…
Browse files Browse the repository at this point in the history
…ng (kubernetes-sigs#8679)

Signed-off-by: Cyril Corbon <[email protected]>
  • Loading branch information
cyril-corbon authored and LuckySB committed Oct 23, 2023
1 parent 2084ac9 commit e144a6a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions roles/container-engine/validate-container-engine/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@
apply:
tags:
- pre-remove
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Stop kubelet
service:
name: kubelet
state: stopped
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Remove Containerd
import_role:
name: container-engine/containerd
Expand All @@ -109,14 +107,12 @@
apply:
tags:
- pre-remove
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Stop kubelet
service:
name: kubelet
state: stopped
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Remove Docker
import_role:
name: container-engine/docker
Expand All @@ -137,14 +133,12 @@
apply:
tags:
- pre-remove
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Stop kubelet
service:
name: kubelet
state: stopped
when:
- kubelet_systemd_unit_exists
when: kubelet_systemd_unit_exists.stat.exists
- name: Remove CRI-O
import_role:
name: container-engine/cri-o
Expand Down

0 comments on commit e144a6a

Please sign in to comment.