|
|
@ -3,10 +3,10 @@ Return Values
|
|
|
|
|
|
|
|
|
|
|
|
.. contents:: Topics
|
|
|
|
.. contents:: Topics
|
|
|
|
|
|
|
|
|
|
|
|
Ansible modules normally return a data structure that can be registered into a variable, or seen directly when output by
|
|
|
|
Ansible modules normally return a data structure that can be registered into a variable, or seen directly when output by
|
|
|
|
the `ansible` program. Each module can optionally document its own unique return values (visible through ansible-doc and https://docs.ansible.com).
|
|
|
|
the `ansible` program. Each module can optionally document its own unique return values (visible through ansible-doc and https://docs.ansible.com).
|
|
|
|
|
|
|
|
|
|
|
|
This document covers return values common to all modules.
|
|
|
|
This document covers return values common to all modules.
|
|
|
|
|
|
|
|
|
|
|
|
.. note:: Some of these keys might be set by Ansible itself once it processes the module's return information.
|
|
|
|
.. note:: Some of these keys might be set by Ansible itself once it processes the module's return information.
|
|
|
|
|
|
|
|
|
|
|
@ -54,7 +54,7 @@ Some modules execute command line utilities or are geared for executing commands
|
|
|
|
|
|
|
|
|
|
|
|
stderr_lines
|
|
|
|
stderr_lines
|
|
|
|
````````````
|
|
|
|
````````````
|
|
|
|
When c(stderr) is returned we also always provide this field which is a list of strings, one item per line from the original.
|
|
|
|
When `stderr` is returned we also always provide this field which is a list of strings, one item per line from the original.
|
|
|
|
|
|
|
|
|
|
|
|
stdout
|
|
|
|
stdout
|
|
|
|
``````
|
|
|
|
``````
|
|
|
@ -62,7 +62,7 @@ Some modules execute command line utilities or are geared for executing commands
|
|
|
|
|
|
|
|
|
|
|
|
stdout_lines
|
|
|
|
stdout_lines
|
|
|
|
````````````
|
|
|
|
````````````
|
|
|
|
When c(stdout) is returned, Ansible always provides a list of strings, each containing one item per line from the original output.
|
|
|
|
When `stdout` is returned, Ansible always provides a list of strings, each containing one item per line from the original output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _internal_return_values:
|
|
|
|
.. _internal_return_values:
|
|
|
|