ansible.posix.profile_tasks (1.5.4) — callback

adds time information to tasks

Authors: unknown

Install collection

Install with ansible-galaxy collection install ansible.posix:==1.5.4


Add to requirements.yml

  collections:
    - name: ansible.posix
      version: 1.5.4

Description

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>) C(<length of previous task>) C(<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.


Requirements

Inputs

    
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