ansible / ansible.builtin / v2.9.27 / callback / profile_tasks adds time information to tasks | "added in version" 2.0 of ansible.builtin" Authors: unknownansible.builtin.profile_tasks (v2.9.27) — callback
pip
Install with pip install ansible==2.9.27
Ansible callback plugin for timing individual tasks and overall execution time.
Mashup of 2 excellent original works: https://github.com/jlafon/ansible-profile, https://github.com/junaid18183/ansible_home/blob/master/ansible_plugins/callback_plugins/timestamp.py.old
Format: C(<task start timestamp> (<length of previous task>) <current elapsed playbook execution time>)
It also lists the top/bottom time consuming tasks in the summary (configurable)
Before 2.4 only the environment variables were available for configuration.
sort_order: choices: - descending - ascending - none default: descending description: Adjust the sorting output of summary tasks env: - name: PROFILE_TASKS_SORT_ORDER ini: - key: sort_order section: callback_profile_tasks output_limit: default: 20 description: Number of tasks to display in the summary env: - name: PROFILE_TASKS_TASK_OUTPUT_LIMIT ini: - key: task_output_limit section: callback_profile_tasks