Error output difficult to read - Ansible

0 votes

So when Ansible playbook throws an error it shows on the next line. This makes it very difficult to read in cases of tracebacks. Is there a way to get a cleaner output of error messages?

Jan 17 in Ansible by Lisha
37 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Lisha, you can use the callback plugins. Thes plugins usually just add new behaviors to ansible responding to events. Thes plugins control the output like the errors and stuff. These can also be integrated with other tools to exploit its functionality. 

Add these in the default section of your ansible.cfg file:

[defaults]
(...)
stdout_callback=debug
stderr_callback=debug
answered Jan 17 by Sameer

Related Questions In Ansible

0 votes
1 answer
0 votes
3 answers
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying "KeyError: 'ApiVersion'" - Ansible

The reason behind this error is that ...READ MORE

answered Jan 8 in Ansible by Sasha
13 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.