Skip to content
Snippets Groups Projects
Commit e03588f4 authored by hikoz's avatar hikoz Committed by Kubernetes Prow Robot
Browse files

use swapon -s (#4216)

parent 8872b2e0
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,11 @@
- swap
- none
# kubelet fails even if ansible_swaptotal_mb = 0
- name: check swap
command: /sbin/swapon -s
register: swapon
changed_when: no
- name: Disable swap
command: swapoff -a
when: ansible_swaptotal_mb > 0
command: /sbin/swapoff -a
when: swapon.stdout != ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment