Remove swap
This commit is contained in:
@@ -141,5 +141,14 @@
|
||||
replace: '\1{{ inventory_hostname }}\2'
|
||||
backup: yes
|
||||
|
||||
- name: swap
|
||||
include: swap.yml
|
||||
- name: Turn off swap
|
||||
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