From 2f4a3f4399b1a579ace5767a268caf7444d07e6c Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Aug 2023 19:53:17 -0400 Subject: [PATCH] disable swap --- install_k8s_pkgs.ansible.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install_k8s_pkgs.ansible.yaml b/install_k8s_pkgs.ansible.yaml index 50fc454..f21acff 100644 --- a/install_k8s_pkgs.ansible.yaml +++ b/install_k8s_pkgs.ansible.yaml @@ -42,7 +42,6 @@ - kubelet - kubeadm - kubectl - - kubelet - containerd - uuidgen - nfs-utils @@ -64,6 +63,18 @@ become: true shell: uuidgen > /etc/machine-id + - name: Disable swap now + become: true + shell: + cmd: swapoff -a + + - name: Disable swap on boot + become: true + lineinfile: + path: /etc/fstab + search_string: swap + state: absent + - name: Enable ntpd service become: true service: -- 2.42.0