Skip to content

Commit

Permalink
Add an example of complex return argument (ansible#28610)
Browse files Browse the repository at this point in the history
  • Loading branch information
emonty authored and gundalow committed Sep 20, 2017
1 parent 7596826 commit 700a032
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/docsite/rst/dev_guide/developing_modules_documenting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,30 @@ Example::
returned: when supported
type: string
sample: 2a5aeecc61dc98c4d780b14b330e3282
...
'''

RETURN = '''
packages:
description: Information about package requirements
returned: On success
type: complex
contains:
missing:
description: Packages that are missing from the system
returned: success
type: list
sample:
- libmysqlclient-dev
- libxml2-dev
badversion:
description: Packages that are installed but at bad versions.
returned: success
type: list
sample:
- package: libxml2-dev
version: 2.9.4+dfsg1-2
constraint: ">= 3.0"
'''

.. note::

Expand Down

0 comments on commit 700a032

Please sign in to comment.