Fix disabling swap on ubuntu systems (#3864)
This commit is contained in:
parent
3e3ee0aeb1
commit
90a7941d56
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue