From 951e4675c6c898a0baa4a1d9ada4e42eb502a8b3 Mon Sep 17 00:00:00 2001 From: Maxim Snezhkov Date: Wed, 12 Dec 2018 16:43:16 +0700 Subject: [PATCH] Fix error with ipvs on cluster reset task (#3848) --- roles/reset/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index ac0351d8f..eeb2248c6 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -110,7 +110,7 @@ - name: Clear IPVS virtual server table shell: "ipvsadm -C" when: - - kube_proxy_mode == 'ipvs' + - kube_proxy_mode == 'ipvs' and inventory_hostname in groups['k8s-cluster'] - name: reset | check kube-ipvs0 network device stat: