Quantcast
Channel: Blog O' Matty on Prefetch Technologies
Viewing all articles
Browse latest Browse all 43

Using the profile module to time Ansible playbook runs

$
0
0
This past weekend I spent some time revamping a few playbooks. One of my playbooks was taking a while to run, and I wanted to see how much actual time was spent in each task. Luckily for me, Ansible has a profiling module to help with this. To enable it, you can add the following directive to the default section in your ansible.cfg configuration file: callback_whitelist = profile_tasks Future playbook runs will result in a timestamp being printed for each task:

Viewing all articles
Browse latest Browse all 43

Trending Articles