If you enable the hash_merge behaviour, you can (ab)use hashes:
group_vars/chocolate::
sauces:
chocolate:
- name : chocolate
value : yummy
group_vars/strawberry:
sauces:
strawberry:
- name : strawberry
value : even_yummier
And then iterate over sauces.values()
(You'd probably need to use with_flattened in this case)
On 15 May 2014 08:12, Martin Devlin <[email protected]> wrote:
> Thanks, so is there no way to do this at the moment?
>
> Why I want to this:
>
> I have several kinds of web site definitions and in production they live
> on separate nodes. However in dev/test I want the same node to host them on
> and I want to use the combined list in a with_nested. But I can quite
> easily think of many other applications for this. I just want to be sure
> it's not supported at the moment and if there's a reason I shouldn't be
> trying to do it like this.
>
> --
> 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/3cc833cf-97f3-4fb5-8ab2-db9090dcf29a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAEhzMJDvvNr9kRn3mXyGYJxZGZixrqn08zLofAX-8uW277Ut9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.