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'

(cherry picked from commit 6d59160744)
pull/26132/head
Eugen C 8 years ago committed by Brian Coca
parent ba453452f0
commit 44b3d67ef3

@ -174,6 +174,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