Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure execution time of Ansible tasks #811

Closed
to-bar opened this issue Dec 30, 2019 · 0 comments · Fixed by #1236
Closed

Measure execution time of Ansible tasks #811

to-bar opened this issue Dec 30, 2019 · 0 comments · Fixed by #1236

Comments

@to-bar
Copy link
Contributor

to-bar commented Dec 30, 2019

There is a built-in plugin which allows to measure execution time of each task and shows summary for each role sorted descending:
https://docs.ansible.com/ansible/latest/plugins/callback/profile_tasks.html
http://techadminblog.com/get-execution-time-of-each-task-ansible/

It allows to easily identify long running tasks as candidates for optimization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants