# Human readable Stdout ansible (2.3.0)

**URL:** <https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882>\
**Category:** Ansible Project\
**Created:** [March 3, 2017, 9:18pm UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882 "2017-03-03T21:18:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeev](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rajeev](https://forum.ansible.com/u/rajeev)\
**Post date:** [March 3, 2017, 9:18pm UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/1 "2017-03-03T21:18:11Z")

</div>

Hello All,

I am in need of your urgent help.  
I am new to ansible. I have installed the latest version of ansible (2.3.0).

I need to run the tool across my entire UNIX environment with 10000+ hosts.

**The problem is with the output which is not in a human readable format. I have created a basic playbook to get some status and have tried both callback version of the [human\_log.py](http://disq.us/url?url=http%3A%2F%2Fhuman_log.py%3ARi-k4a8SxHmDCZT3g5gaiCKmUP0&cuid=3912128) listed by Cliff, did not help.**

“For Ansible 2.x, please check out [https://gist.github.com/dms](https://disq.us/url?url=https%3A%2F%2Fgist.github.com%2Fdms%3Aq92RR5mvAo8SAEeCELqLc1CgTqk&cuid=3912128)… and/or [https://github.com/n0ts/ans](https://disq.us/url?url=https%3A%2F%2Fgithub.com%2Fn0ts%2Fans%3AREoMoUgNfEmkux8H0rFU21Xz_9E&cuid=3912128)…”

Please assist/advise at your earliest, what can I do to make the output more readable.

thanks much!  
Rajeev

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 4, 2017, 10:51am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/2 "2017-03-04T10:51:43Z")

</div>

You are running an unreleased version of a tool you don't have  
experience with on 10000+ hosts? Em... OK.  
First try picking a released version and see what that does.  
As for the rest, none of the URLs you posted actually work.  
So we're left with Googling for some terms.  
Apparently (still guessing here) you mean this plugin:  
[http://blog.cliffano.com/2014/04/06/human-readable-ansible-playbook-log-output-using-callback-plugin/](http://blog.cliffano.com/2014/04/06/human-readable-ansible-playbook-log-output-using-callback-plugin/)  
You already asked the author of the plugin, and seem to have verbatim  
pasted the (HTML) answer here - including the obfuscated URLs.  
One leads to a fork ([https://github.com/n0ts/ansible-human\_log](https://github.com/n0ts/ansible-human_log)), the  
other one to a gist  
([https://gist.github.com/dmsimard/cd706de198c85a8255f6](https://gist.github.com/dmsimard/cd706de198c85a8255f6)).  
Since these are specific plugins and not part of Ansible, I think your  
best bet is to ask the authors (again) for advice.  
I can already see some hints that they work with older versions.  
That might or might not be usable in your situation - hard to tell  
with the current amount of information.

Dick

---

<div class="post-metadata">

**Author:** ![rajeev](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rajeev](https://forum.ansible.com/u/rajeev)\
**Post date:** [March 5, 2017, 5:18am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/3 "2017-03-05T05:18:24Z")

</div>

Thank Dick for your inputs.

I had no trouble with basic functionality of the tool so far. The only thing is the format of the output.

Seems you have been working with ansible for sometime, could you please share what are you doing to format the output?  
Is there a better way to handle that in lower version of ansible?

Thanks again  
Rajeev

---

<div class="post-metadata">

**Author:** ![rajeev](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rajeev](https://forum.ansible.com/u/rajeev)\
**Post date:** [March 5, 2017, 5:21am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/4 "2017-03-05T05:21:27Z")

</div>

Sorry for the link not working… here is the original post which I tried to use:  
[http://blog.cliffano.com/2014/04/06/human-readable-ansible-playbook-log-output-using-callback-plugin/](http://blog.cliffano.com/2014/04/06/human-readable-ansible-playbook-log-output-using-callback-plugin/)  
(it has the two link for 2.x)

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 5, 2017, 8:21am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/5 "2017-03-05T08:21:08Z")

</div>

Have you tried the included callback plugin debug?

---

<div class="post-metadata">

**Author:** ![rajeev](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rajeev](https://forum.ansible.com/u/rajeev)\
**Post date:** [March 6, 2017, 6:25am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/6 "2017-03-06T06:25:22Z")

</div>

Kai thanks.

Yes the Debug callback is included and I have tried to register output to variable and then call thru Debug and it does show better than the standard Json.  
The reason I was looking for a solution using human\_log.py, so to get it more centralized instead of coding register/calling everytime.

Rajeev

---

<div class="post-metadata">

**Author:** ![SUMIT\_SAHAY](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Post date:** [December 4, 2017, 11:08am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/7 "2017-12-04T11:08:55Z")

</div>

Hi Rajeev,

I have query regarding Callback plugin, could you tell me how to setup this and how to run this, if you provide the steps it would be much appreciated.

Looking forward for your reply…

Thanks & Regards  
Sumit Sahay

---

<div class="post-metadata">

**Author:** ![area0](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@area0](https://forum.ansible.com/u/area0)\
**Post date:** [December 4, 2017, 11:23am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/8 "2017-12-04T11:23:45Z")

</div>

just set the following environment variable, no need for the human\_log.py callback plugin;

export ANSIBLE\_STDOUT\_CALLBACK=debug

works fine for me; ansible 2.4.0.0

Hope this helps

---

<div class="post-metadata">

**Author:** ![SUMIT\_SAHAY](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Post date:** [December 5, 2017, 5:12am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882/9 "2017-12-05T05:12:20Z")

</div>

Hi area0,

Thanks for your prompt reply,

I will tell you what I did, I created callback\_plugin directory inside this directory I put ansible.cfg file, then I created human\_log.py file, now I am running my playbook, but I didn’t get any output, could you please help me to run this playbook.

Looking forward for your reply…

Thanks & Regards  
Sumit Sahay
