From 184af0531069ad58afde3133835d8e53c473f656 Mon Sep 17 00:00:00 2001 From: Semaphore Date: Wed, 11 Mar 2026 10:48:16 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20disk=20check=20=E2=80=94=20df=20-P=20POSI?= =?UTF-8?q?X=20flag=20compatible=20with=20BusyBox=20Alpine=20and=20GNU=20c?= =?UTF-8?q?oreutils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/preflight/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/preflight/tasks/main.yml b/roles/preflight/tasks/main.yml index d807f5f..4de2e40 100644 --- a/roles/preflight/tasks/main.yml +++ b/roles/preflight/tasks/main.yml @@ -8,7 +8,7 @@ - name: Check disk space on critical mountpoints ansible.builtin.shell: | - df {{ item }} --output=pcent | tail -1 | tr -d ' %' + df -P {{ item }} | tail -1 | awk '{print $5}' | tr -d '%' # POSIX flag — compatible with BusyBox (Alpine) and GNU coreutils register: disk_usage changed_when: false loop: