diff --git a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml
index ce3d33e8b6e11a14089ec214437a9fe3f53dfd3c..81ed421d7d2f19c5c0a8b8e6b0abc85f61eb1a5d 100644
--- a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml
+++ b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml
@@ -8,6 +8,11 @@
     - swap
     - none
 
+# kubelet fails even if ansible_swaptotal_mb = 0
+- name: check swap
+  command: /sbin/swapon -s
+  register: swapon
+  changed_when: no
 - name: Disable swap
-  command: swapoff -a
-  when: ansible_swaptotal_mb > 0
+  command: /sbin/swapoff -a
+  when: swapon.stdout != ""