json – Ansible screen output as JSON

New in version 2.2.

Synopsis

  • This callback converts all events into JSON output to stdout

Requirements

The below requirements are needed on the local master node that executes this callback.

  • Set as stdout in config

Parameters

Parameter Choices/Defaults Configuration Comments
show_custom_stats
boolean
added in 2.6
    Choices:
  • no ←
  • yes
ini entries:

[defaults]
show_custom_stats = no

env:ANSIBLE_SHOW_CUSTOM_STATS
This adds the custom stats set via the set_stats plugin to the play recap

Status

Authors

  • UNKNOWN

Hint

If you notice any issues in this documentation, you can edit this document to improve it.

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.