More information about host in the heading

34 views
Skip to first unread message

Pål Nilsen

unread,
Jan 21, 2015, 5:44:37 AM1/21/15
to ansible...@googlegroups.com
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?

Brian Coca

unread,
Jan 21, 2015, 9:59:31 AM1/21/15
to ansible...@googlegroups.com
output is controlled by callback plugins, you can easily customize
this be adding your own.

http://docs.ansible.com/developing_plugins.html#callbacks
--
Brian Coca

Pål Nilsen

unread,
Jan 22, 2015, 9:57:03 AM1/22/15
to ansible...@googlegroups.com
Interesting. I didn't know that. I will have to try and see what I can do with it. Thanks for the tip.
Reply all
Reply to author
Forward
0 new messages