On Wed, Jan 30, 2013 at 12:18 AM, Kavin <
ka...@aerospike.com> wrote:
> Thanks for the reply, Which documentation i should follow to define
> ($inventory_hostname) in hostfile for a list of IP's.
Do you mean to get that value, or to define it?
You can use $ansible_hostname which is the hostname fact.
If you have the IP in the inventory file, the $inventory_hostname is
actually going to be the IP, but you are right in that you can set
arbitrary variables on those lines, or in a "host_vars/<name of host>"
file too, in a directory alongside your inventory file.
--Michael