diff --git a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml index 345e75825..ce3d33e8b 100644 --- a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml +++ b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml @@ -1,9 +1,12 @@ --- - name: Remove swapfile from /etc/fstab mount: - name: swap + name: "{{ item }}" fstype: swap state: absent + with_items: + - swap + - none - name: Disable swap command: swapoff -a