Thank you Brian. Turns out the extra spaces cause problems. This worked:
- debug: 
var=hostvars[groups['tag_Name_'+chaos+'_bc_util'][0]].ansible_all_ipv4_addresses[0]

On Wednesday, June 22, 2016 at 11:12:43 AM UTC-4, Brian Coca wrote:
>
> That is prone to breakage as it relies on double interpolation which does 
> not always run, this is probably what you want:
>
> - debug: var=hostvars[groups['tag_Name_' + chaos + 
> '_bc_util'][0]].ansible_all_ipv4_addresses[0]
>
>
> ----------
> 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/eb198363-d0ef-4c36-bc57-e96085bab175%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to