ansible.posix.profile_roles callback – adds timing information to roles

Note

This callback plugin is part of the ansible.posix collection (version 1.6.2).

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 ansible.posix. You need further requirements to be able to use this callback plugin, see Requirements for details.

To use it in a playbook, specify: ansible.posix.profile_roles.

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 callback module provides profiling for ansible roles.

Requirements

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

  • whitelisting in configuration

Parameters

Parameter

Comments

summary_only

boolean

added in ansible.posix 1.5.0

Only show summary, not individual task profiles. Especially usefull in combination with DISPLAY_SKIPPED_HOSTS=false and/or ANSIBLE_DISPLAY_OK_HOSTS=false.

Choices:

  • false ← (default)

  • true

Configuration:

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.