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

9 lines
171 B
YAML

---
- name: Mask swap.target (persist swapoff)
ansible.builtin.systemd_service:
name: swap.target
masked: true
- name: Disable swap
command: /sbin/swapoff -a