From 1940bba3331f12d4420939590b8137b22065e45f Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 23 Apr 2026 12:40:48 +0200 Subject: [PATCH] build --- roles/kubernetes/tasks/Rocky.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/kubernetes/tasks/Rocky.yml b/roles/kubernetes/tasks/Rocky.yml index f9a0e79..c843fad 100644 --- a/roles/kubernetes/tasks/Rocky.yml +++ b/roles/kubernetes/tasks/Rocky.yml @@ -1,7 +1,18 @@ - name: Install kubernetes on Rocky 9 become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}" block: + - name: Get root mount + set_fact: + root_mount: "{{ ansible_mounts | selectattr('mount', 'equalto', '/') | first }}" + - name: Fail if total size < 10GB + fail: + msg: > + Root filesystem is too small! + Total: {{ (root_mount.size_total / 1024 / 1024 / 1024) | round(2) }} GB + when: root_mount.size_total < (10 * 1024 * 1024 * 1024) + + - name: Disable SELinux ansible.posix.selinux: state: permissive