It seems that ansible return results using JSON format, replacing the newlines with \n
in the output.
This makes very hard to read the output on the screen / logs. How can I configure it to use real-newlines?
You need to use the callback plugins in your ansible.cfg
file...
[defaults]
(...)
stdout_callback=debug
stderr_callback=debug
Will solve your issue... Don't ask why it's not the default, because I really can't say.
NOTE: This is only available in Ansible 2.0.0
and later.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With