[validate-container-engine] check if kubelet is present was not working (#8679)

Signed-off-by: Cyril Corbon <corboncyril@gmail.com>
This commit is contained in:
cyril-corbon 2022-04-04 18:34:12 +02:00 committed by GitHub
parent 34fec09ff1
commit 56dda4392c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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