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
|
- name: Remove swapfile from /etc/fstab
|
||||||
mount:
|
mount:
|
||||||
name: swap
|
name: "{{ item }}"
|
||||||
fstype: swap
|
fstype: swap
|
||||||
state: absent
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- swap
|
||||||
|
- none
|
||||||
|
|
||||||
- name: Disable swap
|
- name: Disable swap
|
||||||
command: swapoff -a
|
command: swapoff -a
|
||||||
|
|
Loading…
Reference in a new issue