1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make find return sample a YAML dict

In the description of the find module return value, the sample dict
has its key=value strings converted to key=value: None in the
web documentation. This commit updates the sample output to a 'real'
dict.

Minor additional edit in the description: "return list *of* files".
This commit is contained in:
bencomp 2016-10-16 21:52:34 +02:00 committed by Matt Clay
parent 8e97539e20
commit d25ba6a30a

View file

@ -34,7 +34,7 @@ version_added: "2.0"
short_description: return a list of files based on specific criteria
requirements: []
description:
- Return a list files based on specific criteria. Multiple criteria are AND'd together.
- Return a list of files based on specific criteria. Multiple criteria are AND'd together.
options:
age:
required: false
@ -139,13 +139,13 @@ files:
returned: success
type: list of dictionaries
sample: [
{ path="/var/tmp/test1",
mode=0644,
...,
checksum=16fac7be61a6e4591a33ef4b729c5c3302307523
{ path: "/var/tmp/test1",
mode: "0644",
"...": "...",
checksum: 16fac7be61a6e4591a33ef4b729c5c3302307523
},
{ path="/var/tmp/test2",
...
{ path: "/var/tmp/test2",
"...": "..."
},
]
matched: