ansible.posix icon indicating copy to clipboard operation
ansible.posix copied to clipboard

profile_tasks callback: document how to read the output

Open kenyon opened this issue 2 years ago • 2 comments

SUMMARY

The documentation for the profile_tasks callback should explain the meaning of the task timing output. Example:

Saturday 22 January 2022  12:14:32 -0800 (0:00:11.346)       0:00:11.357 ******
ISSUE TYPE
  • Documentation Report
COMPONENT NAME

profile_tasks

ANSIBLE VERSION
ansible [core 2.12.1]
  config file = /Users/kenyon/git/ansible-playbooks/ansible.cfg
  configured module search path = ['/Users/kenyon/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/5.2.0/libexec/lib/python3.10/site-packages/ansible
  ansible collection location = /Users/kenyon/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.1 (main, Dec  6 2021, 22:25:40) [Clang 13.0.0 (clang-1300.0.29.3)]
  jinja version = 3.0.3
  libyaml = True

kenyon avatar Jan 22 '22 23:01 kenyon

@kenyon As you pointed out, we need to improve it for a better user experience. Thank you for your valuable feedback to improve the documentation :)

saito-hideki avatar Jan 23 '22 01:01 saito-hideki

Wasn't sure if I should submit a new issue for this, but as far as I understand, the line printed after each task is showing (in parentheses) the run time of the previous task, which is confusing and not very useful.

OrBin avatar Oct 28 '22 07:10 OrBin