From 11ece4a0705cc3af217eda4aed19102419fa5a06 Mon Sep 17 00:00:00 2001 From: Christoph Schug Date: Sun, 3 Mar 2024 17:38:41 +0100 Subject: [PATCH] fix: remove bogus task which does nothing The command doesn't change anything on the system, and the registered variable `disk_usage` is never being used, moreover it gets overwritten by the next task. --- ansible/maintenance/maint-diskspace.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ansible/maintenance/maint-diskspace.yaml b/ansible/maintenance/maint-diskspace.yaml index a07e9f0..677c02a 100644 --- a/ansible/maintenance/maint-diskspace.yaml +++ b/ansible/maintenance/maint-diskspace.yaml @@ -3,10 +3,6 @@ hosts: "{{ my_hosts | d([]) }}" tasks: - - name: Get disk usage - ansible.builtin.command: df -h - register: disk_usage - - name: Check disk space available ansible.builtin.shell: df -Ph / | awk 'NR==2 {print $5}' register: disk_usage