ansible/ansible — pull request #2181 by bcoca (2013-02-22 22:09:18+00:00)
Title: now adds 'inventory_ip' which is an attempt to resolve inventory_hostnam...

I've been using:

local: shell dig ${inventory_hostname} ....
register: inventory_ip

a bit too often in my playbooks, this builds it in for me at a small cost and might be useful to others.

Only tested with ipv4, but it is supposed to work with ipv6, let me know if otherwise.