Remove swap

This commit is contained in:
2019-04-07 22:15:04 -04:00
parent c54117e90a
commit e14b84a478

View File

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