Quickly Check Server Status Memory Storage
Quickly check server memory and storage with Ansible#
Use ad hoc commands when you need a quick read-only check across an inventory group.
Memory usage#
ansible [group] -a "free -m" -u [username]
Storage usage#
ansible [group] -a "df -h" -u [username]
Replace [group] with an inventory group and [username] with the remote SSH user.