Update profile_tasks docs (#46690)

Added configuration settings to enable profile_tasks via ansible.cfg

Fixes: #44555

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/35500/head^2
Abhijeet Kasurde 6 years ago committed by Alicia Cozine
parent b177aff41b
commit a47b055ac7

@ -22,7 +22,7 @@ DOCUMENTATION = '''
- 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:
- whitelisting in configuration
- whitelisting in configuration - see examples section below for details.
options:
output_limit:
description: Number of tasks to display in the summary
@ -44,6 +44,11 @@ DOCUMENTATION = '''
'''
EXAMPLES = '''
example: >
To enable, add this to your ansible.cfg file in the defaults block
[defaults]
callback_whitelist = profile_tasks
sample output: >
#
# TASK: [ensure messaging security group exists] ********************************
# Thursday 11 June 2017 22:50:53 +0100 (0:00:00.721) 0:00:05.322 *********
@ -52,7 +57,7 @@ EXAMPLES = '''
# TASK: [ensure db security group exists] ***************************************
# Thursday 11 June 2017 22:50:54 +0100 (0:00:00.558) 0:00:05.880 *********
# changed: [localhost]
# '
#
'''
import collections

Loading…
Cancel
Save