-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some callback plugins can be used together with community.general.diy while others cannot #5734
Comments
Files identified in the description: If these files are incorrect, please update the |
ansible.posix.debug is a stdout callback, same as community.general.diy, so only one of the two can be active (https://docs.ansible.com/ansible/latest/plugins/callback.html#setting-a-callback-plugin-for-ansible-playbook). ansible.posix.profile_tasks is an aggregate callback, so it can work together with stdout callbacks. |
ah that explains it, where is this documented? Is it also possible to implement ansible.posix.debug as an aggregate callback? |
I don't think there is. At least for the two plugins (debug and profile_tasks), the ansible-doc CLI utility will show that information (
I never used the debug callback and have no idea what it does, so I cannot really answer that. |
Summary
As mentioned in the title, when setting
stdout_callback=community.general.diy
in ansible.cfg, some callbacks can be enabled while others can't (e.g.callbacks_enabled=profile_tasks
works but notcallbacks_enabled=debug
)Issue Type
Bug Report
Component Name
community.general.diy
Ansible Version
Community.general Version
OS / Environment
Steps to Reproduce
The following ansible.cfg
behaves as expected with the following playbook.yml
and install_apt_pkg.yml
giving the expected output (truncated)
On the other hand, the following ansible.cfg
does not behave as expected as seen in the following output (truncated)
Expected Results
They should work together or some sort of error should be thrown indicating that the callbacks are incompatible, otherwise the only way to figure out is via trial and error
Code of Conduct
The text was updated successfully, but these errors were encountered: