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