From e89edca3408fb54a1170983a94543bbc62e0b146 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Sat, 27 Jul 2024 19:41:57 +0300 Subject: [PATCH] enable xfs quotas on worker node rootfs --- ansible-kubernetes.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ansible-kubernetes.yml b/ansible-kubernetes.yml index d149b13..bba9114 100644 --- a/ansible-kubernetes.yml +++ b/ansible-kubernetes.yml @@ -1,4 +1,25 @@ --- +- name: Reconfigure Kubernetes worker nodes + hosts: + - storage + - workers + tasks: + - name: Configure grub defaults + copy: + dest: "/etc/default/grub" + content: | + GRUB_DEFAULT=0 + GRUB_TIMEOUT_STYLE=countdown + GRUB_TIMEOUT=5 + GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` + GRUB_CMDLINE_LINUX_DEFAULT="quiet splash memhp_default_state=online" + GRUB_CMDLINE_LINUX="memhp_default_state=online rootflags=pquota" + register: grub_defaults + + - name: Load grub defaults + ansible.builtin.shell: update-grub + when: grub_defaults.changed + - name: Reconfigure Kubernetes nodes hosts: kubernetes vars: