Ansible/profiling

From Freephile Wiki

You can get timings for each individual Ansible task by enabling the profile_tasks callback plugin. This plugin provides per-task timing, ongoing playbook elapsed time, and an ordered list of the longest-running tasks at the end of the playbook run[1].

Modify your ansible.cfg in the 'defaults' section to enable the plugin, which is part of the 'ansible.posix' module. (Check if you have it installed with ansible-galaxy collection list ansible.posix)

[defaults]
callbacks_enabled=ansible.posix.profile_tasks

In Meza

Meza is configured to use the ansible.posix profiler callback plugin for all deploys. Timings for each step and cumulative numbers are provided in the output and the log. You can further configure ansible profiling in your ansible.cfg file. Disable profiling for about 7% faster deploy runs without the timings.


References