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
51 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 by Sameer

Related Questions In Ansible

0 votes
1 answer
0 votes
3 answers
0 votes
1 answer
0 votes
2 answers
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
145 views
0 votes
1 answer
+1 vote
1 answer