mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK (#26098)
* Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK * Ansible ad-hoc 'stdout_callback' should work only with 'bin_ansible_callbacks'
This commit is contained in:
parent
dc2d9a2134
commit
6d59160744
1 changed files with 3 additions and 0 deletions
|
@ -152,6 +152,9 @@ class AdHocCLI(CLI):
|
|||
cb = self.callback
|
||||
elif self.options.one_line:
|
||||
cb = 'oneline'
|
||||
# Respect custom 'stdout_callback' only with enabled 'bin_ansible_callbacks'
|
||||
elif C.DEFAULT_LOAD_CALLBACK_PLUGINS and C.DEFAULT_STDOUT_CALLBACK != 'default':
|
||||
cb = C.DEFAULT_STDOUT_CALLBACK
|
||||
else:
|
||||
cb = 'minimal'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue