c12s-kubespray/roles/kubernetes/preinstall/tasks/0010-swapoff.yml

14 lines
224 B
YAML
Raw Normal View History

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