Reputation: 331
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
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
profile_tasks
– adds time information to tasksUpvotes: 3