summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-12-06 15:15:54 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-12-06 15:16:12 +0800
commit9d8a951bea3ceb064110e3fdfee2ec815c7bca82 (patch)
treee5e0e713fe855b8e7d154cfa81c7cfec361cc537 /deploy/adapters/ansible
parent7d746cae496a38d3056e894c6fa1eccdc3de8e24 (diff)
Fix swap issue
Change-Id: I8115326726fbf36f8022b4944696c7426ae846af Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rw-r--r--deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml
index c915ec09..844d76a3 100644
--- a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml
+++ b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml
@@ -15,4 +15,6 @@
- name: close the swap partition
shell: |
+ systemctl disable swap.target
+ systemctl mask swap.target
swapoff -a