mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-06 17:07:38 -02:30
use swapon -s (#4216)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
8872b2e0c6
commit
e03588f431
@@ -8,6 +8,11 @@
|
|||||||
- swap
|
- swap
|
||||||
- none
|
- none
|
||||||
|
|
||||||
|
# kubelet fails even if ansible_swaptotal_mb = 0
|
||||||
|
- name: check swap
|
||||||
|
command: /sbin/swapon -s
|
||||||
|
register: swapon
|
||||||
|
changed_when: no
|
||||||
- name: Disable swap
|
- name: Disable swap
|
||||||
command: swapoff -a
|
command: /sbin/swapoff -a
|
||||||
when: ansible_swaptotal_mb > 0
|
when: swapon.stdout != ""
|
||||||
|
|||||||
Reference in New Issue
Block a user