medisamm
medisamm

Reputation: 331

ansible.posix.profile_tasks callback – adds time information to tasks

I would like to use the ansible.posix.profile_tasks callback plugins, which adds time information to tasks and overall execution time. I added already to my ansible.cfg the:

[defaults]
callback_whitelist = ansible.posix.profile_task

but I ran into this error when I execute the playbook:

[ansible@control setup]$ ansible-playbook -i inventory  hp.yml
[WARNING]: Skipping callback plugin 'ansible.posix.profile_tasks', unable to load

I already installed the ansible.posix. I saw in the documentation:

To use it in a playbook, specify: ansible.posix.profile_tasks.`

I tried everything but the issue persists. Any idea please.

Upvotes: 0

Views: 3753

Answers (1)

U880D
U880D

Reputation: 12121

In Ansible v2.9, I am only able to reproduce the error if using the full name ansible.posix.profile_tasks within the config file ansible.cfg.

ansible-playbook test.yml
[WARNING]: Skipping callback plugin 'ansible.posix.profile_tasks', unable to load
...

With just profile_tasks in example in

[defaults]
...
callback_whitelist      = timer, profile_tasks
stdout_callback         = yaml
...

the profiling was working properly.

So it might be related to your installed versions and used configurations.

Further Documenation

Upvotes: 3

Related Questions