Skip to content
Snippets Groups Projects
Unverified Commit 687fa3db authored by ChengHao Yang's avatar ChengHao Yang Committed by GitHub
Browse files

Fix: cannot stop & remove all cri containers via remove_node.yml (#11631)


Before adding these changes, `ansible_facts.services["containerd.service"]` will not defined and fail to check for triggering the container stop and delete behaviors.

Signed-off-by: default avatarChengHao Yang <17496418+tico88612@users.noreply.github.com>
parent 616e4b40
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
hosts: "{{ node | default('kube_node') }}" hosts: "{{ node | default('kube_node') }}"
gather_facts: false gather_facts: false
environment: "{{ proxy_disable_env }}" environment: "{{ proxy_disable_env }}"
pre_tasks:
- name: Gather information about installed services
service_facts:
when: reset_nodes | default(True) | bool
roles: roles:
- { role: kubespray-defaults, when: reset_nodes | default(True) | bool } - { role: kubespray-defaults, when: reset_nodes | default(True) | bool }
- { role: remove-node/pre-remove, tags: pre-remove } - { role: remove-node/pre-remove, tags: pre-remove }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment