From 83fb902f55f7425ae7b2893954f2f5b040d06415 Mon Sep 17 00:00:00 2001 From: liubo Date: Tue, 10 Sep 2019 10:47:04 +0800 Subject: [PATCH] Update disk space check modle (#937) --- roles/check_system_dynamic/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/check_system_dynamic/tasks/main.yml b/roles/check_system_dynamic/tasks/main.yml index a27253004..d760d4e35 100644 --- a/roles/check_system_dynamic/tasks/main.yml +++ b/roles/check_system_dynamic/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Disk space check - Fail task when disk is full - raw: df -h . | tail -n1 + shell: df -h . | tail -n1 register: disk_space_st failed_when: " '100%' in disk_space_st.stdout " changed_when: false