From: Alex Date: Wed, 16 Aug 2023 23:53:17 +0000 (-0400) Subject: disable swap X-Git-Url: https://git.t-ch.net/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=malyna-ansible.git disable swap --- 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: