c12s-kubespray/roles/kubernetes/preinstall/tasks/0010-swapoff.yml
2018-12-11 02:42:00 -08:00

14 lines
224 B
YAML

---
- name: Remove swapfile from /etc/fstab
mount:
name: "{{ item }}"
fstype: swap
state: absent
with_items:
- swap
- none
- name: Disable swap
command: swapoff -a
when: ansible_swaptotal_mb > 0