Alerting on Disk Utilization using Ansible

40 views
Skip to first unread message

Zeal Vora

unread,
Sep 3, 2015, 8:13:50 AM9/3/15
to Ansible Project
Hi

Is there any way were i can run Ansible on N number of servers and it will detect the Disk Space of each partition and if Disk Space > Specified Amount, it will give us an indication for the same.

Which module will be suitable for this ?

Brian Coca

unread,
Sep 3, 2015, 8:28:19 AM9/3/15
to Ansible Project
fact gathering does this for you already, the ansible_mounts key has
'size' and 'size available' for each mount.

to do it manually just use 'setup' module directly.


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages