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, 2019 in Ansible by Lisha
1,675 views

1 answer to this question.

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, 2019 by Sameer

Related Questions In Ansible

0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP