From 5f4a24557ba2eaa7afbbf3a20e590d5ae7e2d191 Mon Sep 17 00:00:00 2001 From: Michel Blanc 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. --- library/setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/setup b/library/setup index 130e5e39a04..6e70b983fcb 100644 --- a/library/setup +++ b/library/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 '''