now using `mount` module Signed-off-by: John lockman <john.lockman@friday.local>
@@ -45,16 +45,11 @@
dest: "{{ docker_repo_dest }}"
tags: install
-- name: Disable swap
- command: /sbin/swapoff -a
- changed_when: true
- tags: install
-
-- name: Permanently Disable SWAP in fstab
- replace:
- path: /etc/fstab
- regexp: '^([^#].*?\sswap\s+sw\s+.*)$'
- replace: '# \1'
+- name: Permanently Disable swap
+ mount:
+ name: "swap"
+ fstype: swap
+ state: absent
- name: Disable selinux
selinux: