From e01118d36dac3e78f49b0e6305311e9f5e163fa6 Mon Sep 17 00:00:00 2001 From: BenoitBOULANGER Date: Thu, 10 Oct 2019 14:17:43 +0200 Subject: [PATCH] Fix issue in remove-node/post-remove task (#5185) (#5186) --- roles/remove-node/post-remove/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/remove-node/post-remove/tasks/main.yml b/roles/remove-node/post-remove/tasks/main.yml index e36c21742..3b669f251 100644 --- a/roles/remove-node/post-remove/tasks/main.yml +++ b/roles/remove-node/post-remove/tasks/main.yml @@ -14,6 +14,8 @@ - name: Set node IP set_fact: node_ip: "{{ ip | default(access_ip | default(remove_node_ip.stdout)) | trim }}" + when: + - inventory_hostname in groups['etcd'] - name: Delete node command: "{{ bin_dir }}/kubectl delete node {{ inventory_hostname }}"