ansible.posix.json (1.5.4) — callback

Ansible screen output as JSON

Authors: unknown

Install collection

Install with ansible-galaxy collection install ansible.posix:==1.5.4


Add to requirements.yml

  collections:
    - name: ansible.posix
      version: 1.5.4

Description

This callback converts all events into JSON output to stdout


Requirements

Inputs

    
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