Ansible playbook to see memory usage of servers
15:51 09 Mar 2020

I currently am trying to find out how to get the % of memory used on my server. Or at least some sort of information regarding the memory usage.

I know that by using the following

---

- hosts: all
  gather_facts: False
  tasks:
  - name: run uptime
    shell: uptime
    register: uptime
  - name: show uptime
    debug: var=uptime

I'm able to see the uptime, but not sure what I have to modify to see the memory? Even if I could see just the total memory of the server and the memory used it would be useful

ansible