Can you expand on what you mean by "include + with_items"? I have a use
case that is almost identical to what Daniel gives above. Need something
like this (I'm sure it's not exactly right):
roles/httpd/tasks/main.yml:
---
- block:
- include_vars: {{ item }}
- debug: msg="{{ field1 }} from with list"
- debug: msg="{{ field2 }} from with list"
- template: src="templates/site.conf.j2" dest="site.conf"
with_fileglob:
- vars/*.yml
So basically pulling in a group of variables file one at a time (*not*
merging) and running through an *entire* set of tasks on each, one at a
time.
On Friday, April 17, 2015 at 9:37:19 AM UTC-5, Brian Coca wrote:
>
> yes
>
> On Fri, Apr 17, 2015 at 10:33 AM, Daniel Siechniewicz
> <[email protected] <javascript:>> wrote:
> > Or is this a role for include + with_items that will be available in
> 2.0?
> >
> > Regards,
> > Daniel
> >
> >
>
>
> --
> 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/cbb9378f-507d-4346-9ea1-ba3af281b6fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.