Skip to content

minimal

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version historical.

Synopsis

  • This is the default output callback used by the ansible command (ad-hoc)

Parameters

Parameter Defaults / Choices Comments
pretty_results
bool
Configure the result format to be more readable.
When O(result_format) is set to V(yaml) this option defaults to V(true), and defaults to V(false) when configured to V(json).
Setting this option to V(true) will force V(json) and V(yaml) results to always be pretty printed regardless of verbosity.
When set to V(true) and used with the V(yaml) result format, this option will modify module responses in an attempt to produce a more human friendly output at the expense of correctness, and should not be relied upon to aid in writing variable manipulations or conditionals. For correctness, set this option to V(false) or set O(result_format) to V(json).
Env: ANSIBLE_CALLBACK_FORMAT_PRETTY
Version Added: 2.13
result_format
str
Default: json
Choices: json, yaml
Define the task result format used in the callback output.
These formats do not cause the callback to emit valid JSON or YAML formats.
The output contains these formats interspersed with other non-machine parsable data.
Env: ANSIBLE_CALLBACK_RESULT_FORMAT
Version Added: 2.13
result_indentation
int
Default: 4
Allows to configure indentation for YAML and verbose/pretty JSON.
Please note that for O(result_format=yaml), only values between 2 and 9 will be handled as expected by PyYAML. If indentation is set to 1, or to 10 or larger, the first level of indentation will be used, but all further indentations will be by 2 spaces.
Env: ANSIBLE_CALLBACK_RESULT_INDENTATION
Version Added: 2.20