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/d9fe7707-d562-4428-97c1-269ec5257de5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.