]> git.t-ch.net - malyna-ansible.git/commitdiff
disable swap master
authorAlex <alex@t-ch.net>
Wed, 16 Aug 2023 23:53:17 +0000 (19:53 -0400)
committerAlex <alex@t-ch.net>
Wed, 16 Aug 2023 23:53:17 +0000 (19:53 -0400)
install_k8s_pkgs.ansible.yaml

index 50fc454a84e32c745143ff6286cb36d3df003ac5..f21acff4a1ec19d383f318d0f1d6dc4f73dffa27 100644 (file)
@@ -42,7 +42,6 @@
           - kubelet
           - kubeadm
           - kubectl
           - kubelet
           - kubeadm
           - kubectl
-          - kubelet
           - containerd
           - uuidgen
           - nfs-utils
           - containerd
           - uuidgen
           - nfs-utils
       become: true
       shell: uuidgen > /etc/machine-id
 
       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:
     - name: Enable ntpd service
       become: true
       service: