Remove swap
This commit is contained in:
@@ -141,5 +141,14 @@
|
|||||||
replace: '\1{{ inventory_hostname }}\2'
|
replace: '\1{{ inventory_hostname }}\2'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: swap
|
- name: Turn off swap
|
||||||
include: swap.yml
|
shell: swapoff -a
|
||||||
|
|
||||||
|
- name: swap - remove current swaps from fstab
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/fstab
|
||||||
|
regexp: '^\/[\S]+\s+none\s+swap '
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
#- name: swap
|
||||||
|
# include: swap.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user