# Print ansible fact from remote nodes

**URL:** <https://forum.ansible.com/t/print-ansible-fact-from-remote-nodes/11956>\
**Category:** Ansible Project\
**Created:** [October 6, 2012, 9:51am UTC](https://forum.ansible.com/t/print-ansible-fact-from-remote-nodes/11956 "2012-10-06T09:51:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgars](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@Edgars](https://forum.ansible.com/u/Edgars)\
**Post date:** [October 6, 2012, 9:51am UTC](https://forum.ansible.com/t/print-ansible-fact-from-remote-nodes/11956/1 "2012-10-06T09:51:35Z")

</div>

Hi.

I guess I am missing something obvious, but how can I print some ansible fact from all remote nodes. For example I want to get $ansible\_memtotal\_mb from all nodes:

tasks:

- name: get mem fact

action: command echo $ansible\_memtotal\_mb

But when I run this playbook, nothing happens, I mean Its not printing anything…

Edgars

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 6, 2012, 12:24pm UTC](https://forum.ansible.com/t/print-ansible-fact-from-remote-nodes/11956/2 "2012-10-06T12:24:28Z")

</div>

Add -v to your command line to ansible-playbook or run the setup module with

/usr/bin/ansible all -m setup
