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 ?
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 ?
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.