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'
pull/25405/merge
Eugen C 7 years ago committed by Brian Coca
parent dc2d9a2134
commit 6d59160744

@ -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…
Cancel
Save