Browse Source

Fix disabling swap on ubuntu systems (#3864)

pull/3882/head
Maxim Snezhkov 5 years ago
committed by Kubernetes Prow Robot
parent
commit
90a7941d56
1 changed files with 4 additions and 1 deletions
  1. 5
      roles/kubernetes/preinstall/tasks/0010-swapoff.yml

5
roles/kubernetes/preinstall/tasks/0010-swapoff.yml

@ -1,9 +1,12 @@
---
- name: Remove swapfile from /etc/fstab
mount:
name: swap
name: "{{ item }}"
fstype: swap
state: absent
with_items:
- swap
- none
- name: Disable swap
command: swapoff -a

Loading…
Cancel
Save