(cherry picked from commit 270385f949
)
This commit is contained in:
parent
4488b91699
commit
d5acbfd6e3
1 changed files with 4 additions and 2 deletions
|
@ -372,7 +372,7 @@ Otherwise, for each value returned, provide the following fields. All fields are
|
||||||
Only needed if this return was extended after initial Ansible release, in other words, this is greater than the top level `version_added` field.
|
Only needed if this return was extended after initial Ansible release, in other words, this is greater than the top level `version_added` field.
|
||||||
This is a string, and not a float, for example, ``version_added: '2.3'``.
|
This is a string, and not a float, for example, ``version_added: '2.3'``.
|
||||||
:contains:
|
:contains:
|
||||||
Optional. To describe nested return values, set ``type: complex``, ``type: dict``, or ``type: list``/``elements: dict`` and repeat the elements above for each sub-field.
|
Optional. To describe nested return values, set ``type: dict``, or ``type: list``/``elements: dict``, or if you really have to, ``type: complex``, and repeat the elements above for each sub-field.
|
||||||
|
|
||||||
Here are two example ``RETURN`` sections, one with three simple fields and one with a complex nested field::
|
Here are two example ``RETURN`` sections, one with three simple fields and one with a complex nested field::
|
||||||
|
|
||||||
|
@ -398,12 +398,13 @@ Here are two example ``RETURN`` sections, one with three simple fields and one w
|
||||||
packages:
|
packages:
|
||||||
description: Information about package requirements.
|
description: Information about package requirements.
|
||||||
returned: success
|
returned: success
|
||||||
type: complex
|
type: dict
|
||||||
contains:
|
contains:
|
||||||
missing:
|
missing:
|
||||||
description: Packages that are missing from the system.
|
description: Packages that are missing from the system.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
sample:
|
sample:
|
||||||
- libmysqlclient-dev
|
- libmysqlclient-dev
|
||||||
- libxml2-dev
|
- libxml2-dev
|
||||||
|
@ -411,6 +412,7 @@ Here are two example ``RETURN`` sections, one with three simple fields and one w
|
||||||
description: Packages that are installed but at bad versions.
|
description: Packages that are installed but at bad versions.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
|
elements: dict
|
||||||
sample:
|
sample:
|
||||||
- package: libxml2-dev
|
- package: libxml2-dev
|
||||||
version: 2.9.4+dfsg1-2
|
version: 2.9.4+dfsg1-2
|
||||||
|
|
Loading…
Reference in a new issue