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

Signed-off-by: Cyril Corbon <corboncyril@gmail.com>
pull/8675/head
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
1 changed files with 6 additions and 12 deletions

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