瀏覽代碼

Merge pull request #253 from j0hnL/issue-252

premanently disable swap
Lucas A. Wilson 4 年之前
父節點
當前提交
56846119b6
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      roles/common/tasks/main.yml

+ 5 - 4
roles/common/tasks/main.yml

@@ -45,10 +45,11 @@
     dest: "{{ docker_repo_dest }}"
   tags: install
 
-- name: Disable swap
-  command: /sbin/swapoff -a
-  changed_when: true
-  tags: install
+- name: Permanently Disable swap
+  mount:
+    name: "swap"
+    fstype: swap
+    state: absent
 
 - name: Disable selinux
   selinux: