ansible / ansible.posix / 1.5.4 / callback / json Ansible screen output as JSON Authors: unknownansible.posix.json (1.5.4) — callback
Install with ansible-galaxy collection install ansible.posix:==1.5.4
collections: - name: ansible.posix version: 1.5.4
This callback converts all events into JSON output to stdout
json_indent: default: 4 description: If specified, use this many spaces for indenting in the JSON output. If <= 0, write to a single line. env: - name: ANSIBLE_JSON_INDENT ini: - key: json_indent section: defaults name: Use indenting for the JSON output type: integer show_custom_stats: default: false description: This adds the custom stats set via the set_stats plugin to the play recap env: - name: ANSIBLE_SHOW_CUSTOM_STATS ini: - key: show_custom_stats section: defaults name: Show custom stats type: bool