Browse Source
[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
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
12 deletions
-
roles/container-engine/validate-container-engine/tasks/main.yml
|
|
@ -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 |
|
|
|