Skip to content

tree

Collection Note

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

ansible-galaxy collection install ansible.builtin
Added in version 2.0.

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

Synopsis

  • This callback is used by the Ansible (adhoc) command line option C(-t|--tree).
  • This produces a JSON dump of events in a directory, a file for each host, the directory used MUST be passed as a command line option.

Requirements

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

Parameters

Parameter Defaults / Choices Comments
directory
path
Default: ~/.ansible/tree
directory that will contain the per host JSON files. Also set by the C(--tree) option when using adhoc.
Env: ANSIBLE_CALLBACK_TREE_DIR
Version Added: 2.11