community.general.print_task callback – Prints playbook task snippet to job output

Note

This callback plugin is part of the community.general collection (version 11.2.1).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.general. You need further requirements to be able to use this callback plugin, see Requirements for details.

To use it in a playbook, specify: community.general.print_task.

New in community.general 10.7.0

Callback plugin

This plugin is an aggregate callback. It adds additional console output next to the configured stdout callback. See Callback plugins for more information on callback plugins.

Synopsis

  • This plugin prints the currently executing playbook task to the job output.

Requirements

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

  • enable in configuration

Examples

ansible.cfg: |-
  # Enable plugin
  [defaults]
  callbacks_enabled=community.general.print_task