diff --git a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml index c293683b8a2..f066ab635e7 100644 --- a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml +++ b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml @@ -17,3 +17,4 @@ - name: Disable swap command: /sbin/swapoff -a when: swapon.stdout + ignore_errors: "{{ ansible_check_mode }}"