diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-09-28 15:18:42 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-09-28 15:18:42 +0800 |
commit | 47805bc6f591b0f4da7c67193e1ee7a1dc42cada (patch) | |
tree | 0181be31d6ef371b679c5d207a49aea58fb05958 /deploy/adapters/ansible | |
parent | 33f94b43639dbe37b7e8e2b5eeb4c65064207c6b (diff) |
Disable swap for kubernetes scenario
JIRA: COMPASS-619
Change-Id: I121399f8d034cce48a819aed3dde2d03c84ce249
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.yml | 2 |
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 |