How to make Ansible output look nice?

2,197 views
Skip to first unread message

Joanna Delaporte

unread,
Dec 7, 2015, 1:32:28 PM12/7/15
to Ansible Project
I have been looking around and cannot find the answer to this...my ansible output looks terrible, and is difficult to read. What is the best way to make it more readable? 

(item={'value': {u'services': [u'dns'], u'sources': [u'0.0.0.0/0'], u'state': u'enabled', u'permanent': u'True'}, 'key': u'public'}) => {"failed": true, "item": {"key": "public", "value": {"permanent": "True", "services": ["dns"], "sources": ["0.0.0.0/0"], "state": "enabled"}}

Thanks!
Joanna

Brian Coca

unread,
Dec 7, 2015, 1:36:50 PM12/7/15
to Ansible Project
You can use the callback plugins, specially in 2.0 you can control all
aspects of output.

For more options, visit https://groups.google.com/d/optout.


--
Brian Coca

Paul Hardwick

unread,
Dec 9, 2015, 12:25:01 PM12/9/15
to Ansible Project
I hadn't gotten a chance to install yet, but I had found this when I was looking for myself.


Paul

Joanna Delaporte

unread,
Dec 9, 2015, 12:42:59 PM12/9/15
to ansible...@googlegroups.com

Hi, thanks! I read through the blog and attempted to set it up, but it's not working for me yet.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/wRxUKXZA9FI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d0247638-c507-44a8-a318-85e52c888507%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages