From c5e618ed933935984c130a5be378820432c94833 Mon Sep 17 00:00:00 2001
From: Michel Blanc <mb@mbnet.fr>
Date: Wed, 20 Feb 2013 17:57:59 +0100
Subject: [PATCH] Adds example for filter option in setup module

Added an example on how to filter keys returned by the module.
---
 setup | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/setup b/setup
index 130e5e39a04..6e70b983fcb 100644
--- a/setup
+++ b/setup
@@ -55,6 +55,8 @@ notes:
 examples:
     - code: ansible all -m setup --tree /tmp/facts
       description: Obtain facts from all hosts and store them indexed by I(hostname) at C(/tmp/facts).
+    - code: ansible all -m setup -a 'filter=ansible_*_mb'
+      description: Obtain I(only) facts regarding memory from all hosts and output them.
 author: Michael DeHaan
 '''