Filed the bug here:
https://github.com/ansible/ansible/issues/16931


On Wednesday, August 3, 2016 at 1:07:37 PM UTC+2, Trond Hindenes wrote:
>
> Thanks Jon, I'll look into this. The group I'm trying to add to is already 
> present in the inventory, not sure if that means anything. I'll do a bit of 
> digging.
>
> On Tuesday, August 2, 2016 at 7:20:55 AM UTC+2, J Hawkesworth wrote:
>>
>> This isn't a pattern I use but I just wonder if you need to ensure that 
>> the list of hosts you are creating is held as a list
>>
>> set_fact:
>>    my_group: "{{ just_created | list }}"
>>
>> hosts: "{{ my_group }}"
>> or possibly even
>>
>> On Monday, August 1, 2016 at 4:04:37 PM UTC+1, Trond Hindenes wrote:
>>>
>>> As far as I can see, weird things start happening when using a variable 
>>> as a target for hosts.
>>> If I do:   hosts: just_created things look good, but if I capture that 
>>> value in a variable instead, things fall to pieces:
>>>
>>> hosts: "{{ my_group }}"
>>>
>>

-- 
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/acc7b6ea-7e22-4fdf-b755-baf614c68587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to