[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:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
- pre-remove
|
- pre-remove
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Stop kubelet
|
- name: Stop kubelet
|
||||||
service:
|
service:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Remove Containerd
|
- name: Remove Containerd
|
||||||
import_role:
|
import_role:
|
||||||
name: container-engine/containerd
|
name: container-engine/containerd
|
||||||
|
@ -109,14 +107,12 @@
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
- pre-remove
|
- pre-remove
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Stop kubelet
|
- name: Stop kubelet
|
||||||
service:
|
service:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Remove Docker
|
- name: Remove Docker
|
||||||
import_role:
|
import_role:
|
||||||
name: container-engine/docker
|
name: container-engine/docker
|
||||||
|
@ -137,14 +133,12 @@
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
- pre-remove
|
- pre-remove
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Stop kubelet
|
- name: Stop kubelet
|
||||||
service:
|
service:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when: kubelet_systemd_unit_exists.stat.exists
|
||||||
- kubelet_systemd_unit_exists
|
|
||||||
- name: Remove CRI-O
|
- name: Remove CRI-O
|
||||||
import_role:
|
import_role:
|
||||||
name: container-engine/cri-o
|
name: container-engine/cri-o
|
||||||
|
|
Loading…
Reference in a new issue