From 90a7941d567a9a9e16dc2ad32b5346ae837170ea Mon Sep 17 00:00:00 2001 From: Maxim Snezhkov Date: Tue, 11 Dec 2018 17:42:00 +0700 Subject: [PATCH] Fix disabling swap on ubuntu systems (#3864) --- roles/kubernetes/preinstall/tasks/0010-swapoff.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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