- name: Run disk space command ansible.builtin.shell: "df --output=avail / | awk 'NR==2 {avail=$1; if (avail >= 4194304) printf \"true\"; else printf \"false\"}'" # System checks if root partition has at least 4 GB (4194304 KB) available for updates register: disk_space_output - name: "**DEBUG**: Server disk Utilization condition" ansible.builtin.debug: var: disk_space_output.stdout when: debug | bool