mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adds example for filter option in setup module
Added an example on how to filter keys returned by the module.
This commit is contained in:
parent
75b687247a
commit
5f4a24557b
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ notes:
|
||||||
examples:
|
examples:
|
||||||
- code: ansible all -m setup --tree /tmp/facts
|
- 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).
|
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
|
author: Michael DeHaan
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue