c12s-kubespray/roles/kubernetes/preinstall/tasks/0010-swapoff.yml
2018-08-31 13:45:08 +02:00

10 lines
180 B
YAML

---
- name: Remove swapfile from /etc/fstab
mount:
name: swap
fstype: swap
state: absent
- name: Disable swap
command: swapoff -a
when: ansible_swaptotal_mb > 0