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