Skip to content

jsonl

Collection Note

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

ansible-galaxy collection install ansible.posix

You need further requirements to be able to use this module, see the Requirements section for details.

Synopsis

  • This callback converts all events into JSON output to stdout
  • This callback in contrast with ansible.posix.json uses less memory, because it doesn't store results.

Requirements

The following Python packages are needed on the host that executes this module:

Parameters

Parameter Defaults / Choices Comments
json_indent
integer
If specified, use this many spaces for indenting in the JSON output. If not specified or <= 0, write to a single line.
Env: ANSIBLE_JSON_INDENT
show_custom_stats
bool
This adds the custom stats set via the set_stats plugin to the play recap
Env: ANSIBLE_SHOW_CUSTOM_STATS

Notes

Note

  • When using a strategy such as free, host_pinned, or a custom strategy, host results will be added to new task results in .plays[].tasks[]. As such, there will exist duplicate task objects indicated by duplicate task IDs at .plays[].tasks[].task.id, each with an individual host result for the task.