<p>I've not tested it, but as the doc says, you can configure the plugin via two ways : ini entries or env.</p>

<p>Add below your snippet the following and it should work : </p>

<pre><code>[defaults]
callback_whitelist = profile_tasks

[callback_profile_tasks]
sort_order = descending
</code></pre>

CC BY-SA 4.0
2019-01-14T13:35:55.083Z
2019-01-14T13:35:55.083Z
Aykut Açikel
<p>In Ansible, I want to use a plugin parameter.  For example, the <a href="https://docs.ansible.com/ansible/latest/plugins/callback/profile_tasks.html" rel="nofollow noreferrer"><code>profile_tasks</code> plugin</a> supports a parameter to "Adjust the sorting output of summary tasks".</p>

<p>I enable this plugin by whitelisting it in the <code>ansible.cfg</code> file by:</p>

<pre><code>[defaults]
callback_whitelist = profile_tasks
</code></pre>

<p>But how do I use the parameter supported by the plugin?</p>

<p>Note: I just want to use it but I don't know how to. The document says "parameter" and normally I think the way to use a parameter is to "pass a parameter to a function/command line" so that's why I asked "how to pass a parameter". What I want to know is "How to use a plugin parameter".</p>

<ansible>
How to use a plugin parameter?
Tran Triet
# How to use a plugin parameter?

(Asked by: username_0 on 2019-01-09)

In Ansible, I want to use a plugin parameter.  For example, the profile_tasks plugin supports a parameter to "Adjust the sorting output of summary tasks".
I enable this plugin by whitelisting it in the ansible.cfg file by:
[defaults]
callback_whitelist = profile_tasks

But how do I use the parameter supported by the plugin?
Note: I just want to use it but I don't know how to. The document says "parameter" and normally I think the way to use a parameter is to "pass a parameter to a function/command line" so that's why I asked "how to pass a parameter". What I want to know is "How to use a plugin parameter".

**Tags:** ansible


---

## 1 answers

### Answer by username_1 on 2019-01-14. Score: 2

I've not tested it, but as the doc says, you can configure the plugin via two ways : ini entries or env.
Add below your snippet the following and it should work : 
[defaults]
callback_whitelist = profile_tasks

[callback_profile_tasks]
sort_order = descending


---

