# More information about host in the heading

**URL:** <https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335>\
**Category:** Ansible Project\
**Created:** [January 21, 2015, 10:44am UTC](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335 "2015-01-21T10:44:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pal\_Nilsen](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@Pal\_Nilsen](https://forum.ansible.com/u/Pal_Nilsen)\
**Post date:** [January 21, 2015, 10:44am UTC](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335/1 "2015-01-21T10:44:37Z")

</div>

When running tasks Ansible will print the hostname it connected to as the heading.

E.g.

`  
GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [ec2-…eu-west-1.compute.amazonaws.com]

`

If I use a static inventory file this will be the name in my hosts file, but now that I’m using ec2.py it prints the above.

Is there any way to get it to print some more information, like tag\_Name from EC2? Any ideas?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 21, 2015, 2:59pm UTC](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335/2 "2015-01-21T14:59:28Z")

</div>

output is controlled by callback plugins, you can easily customize  
this be adding your own.

[http://docs.ansible.com/developing\_plugins.html#callbacks](http://docs.ansible.com/developing_plugins.html#callbacks)

---

<div class="post-metadata">

**Author:** ![Pal\_Nilsen](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@Pal\_Nilsen](https://forum.ansible.com/u/Pal_Nilsen)\
**Post date:** [January 22, 2015, 2:57pm UTC](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335/3 "2015-01-22T14:57:03Z")

</div>

Interesting. I didn’t know that. I will have to try and see what I can do with it. Thanks for the tip.
