ソースを参照

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 }}"
     dest: "{{ docker_repo_dest }}"
   tags: install
   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
 - name: Disable selinux
   selinux:
   selinux: