Fix disabling swap on ubuntu systems (#3864)

This commit is contained in:
Maxim Snezhkov 2018-12-11 17:42:00 +07:00 committed by Kubernetes Prow Robot
parent 3e3ee0aeb1
commit 90a7941d56

View file

@ -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