ansible.posix.json – Ansible screen output as JSON
This plugin is part of the ansible.posix collection (version 1.3.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install ansible.posix.
To use it in a playbook, specify:
The below requirements are needed on the local controller node that executes this callback.
Set as stdout in config
This adds the custom stats set via the set_stats plugin to the play recap
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.