Hello,

Is it possible to access {{ ansible_ssh_host }} variable from inventory in 
the above example? I need ip addresses to provision VMs before I run 
Ansible on them. 
Thanks in advance,

Tomasz Klosinski

On Thursday, 17 April 2014 15:39:28 UTC+2, Brian Coca wrote:
>
> inventory_hostname is a 'magic' variable and always present, its not part 
> of fact gathering but inventory definition.
>
> to see if a variable exists for a host you can do:
>
>     'varname' in hostvars[<host's inventory name>]
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6b511bf3-4e26-435d-aa03-8d0b9df1eee5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to