Note
This plugin is part of the ansible.posix collection.
To install it use: ansible-galaxy collection install ansible.posix.
To use it in a playbook, specify: ansible.posix.profile_tasks.
<task start timestamp> (<length of previous task> <current elapsed playbook execution time>)The below requirements are needed on the local controller node that executes this callback.
| Parameter | Choices/Defaults | Configuration | Comments |
|---|---|---|---|
| output_limit string | Default: 20 | ini entries: [callback_profile_tasks] env:PROFILE_TASKS_TASK_OUTPUT_LIMIT | Number of tasks to display in the summary |
| sort_order string |
| ini entries: [callback_profile_tasks] env:PROFILE_TASKS_SORT_ORDER | Adjust the sorting output of summary tasks |
example: >
To enable, add this to your ansible.cfg file in the defaults block
[defaults]
callback_whitelist = ansible.posix.profile_tasks
sample output: >
#
# TASK: [ensure messaging security group exists] ********************************
# Thursday 11 June 2017 22:50:53 +0100 (0:00:00.721) 0:00:05.322 *********
# ok: [localhost]
#
# TASK: [ensure db security group exists] ***************************************
# Thursday 11 June 2017 22:50:54 +0100 (0:00:00.558) 0:00:05.880 *********
# changed: [localhost]
#
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/ansible/posix/profile_tasks_callback.html