ansible.posix
ansible.posix copied to clipboard
callback profiling works only with deprecated configuration directives
SUMMARY
Callback profiling does not show tasks execution time when configured:
callback_whitelist = ansible.posix.profile_tasks
and causes:
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
when callback_enabled = ansible.posix.profile_tasks
is present in the config profiling does not work.
ISSUE TYPE
- Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.12.3]
config file = /home/sz/ansible.cfg
configured module search path = ['/home/sz/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/sz/venvs/ansible/lib/python3.8/site-packages/ansible
ansible collection location = /home/sz/.ansible/collections
executable location = /home/sz/venvs/ansible/bin/ansible
python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
jinja version = 3.0.3
libyaml = True
COLLECTION VERSION
$ ansible-galaxy collection list ansible.posix
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
# /home/sz/.ansible/collections/ansible_collections
Collection Version
------------- -------
ansible.posix 1.3.0
# /home/sz/venvs/ansible/lib/python3.8/site-packages/ansible_collections
Collection Version
------------- -------
ansible.posix 1.3.0
OS / ENVIRONMENT
n/a
I think you have a typo there, shouldn't it be callbacks_enabled
?
Thank you! This has been bugging me for months.