Playbook to display free space
This commit is contained in:
8
playbooks/disk-space.yml
Normal file
8
playbooks/disk-space.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Check disk space
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Check free disk space
|
||||
shell: df -kh / | tail -n1 | awk '{print $5}'
|
||||
register: free
|
||||
- debug: var=free.stdout_lines
|
||||
Reference in New Issue
Block a user