disable swap
now using `mount` module
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:
