So is there no way to define something like 'global' variables along with 
the inventory ? I thought the implicit 'all' group can be treated like 
global variables.

On Tuesday, 11 July 2017 19:27:06 UTC+2, Brian Coca wrote:
>
> The 'hostList1' inventory variable is not available until AFTER the 
> hosts: is processed, this is a chicken/egg issue. 
>
> Inventory variables are flattened per host, so only once you have a 
> host can you query the value of the variable. 
>
> `hosts:` defines which hosts are available, as such it cannot depend 
> on a host nor a variable associated to a host. 
>
>
> ---------- 
> Brian Coca 
>

-- 
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/de97eafa-dc91-4271-abaf-3a1b8df82cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to