[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:
parent
34fec09ff1
commit
56dda4392c
1 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue