"It seems as though this is not possible, but it could really allow for
using jinja's looping function. "

This is entirely possible.

Any of the variables files expept the INI file format inventory file allow
this.

group_vars/groupname being one of the easiest options.




On Mon, May 5, 2014 at 8:18 PM, Dmitry Makovey <[email protected]> wrote:

>
>
> On Monday, May 5, 2014 7:27:57 AM UTC-6, greg cox wrote:
>>
>> It seems as though this is not possible, but it could really allow for
>> using jinja's looping function.  I realize the with_items functionality,
>> but I would like to use both at the same time, it would greatly simplify my
>> templates, and was wondering if this was something that is possible another
>> way?
>>
>> from vars file:
>> mgmt_access_networks = ['172.0.0.0.0/24', '172.1.0.0/16']
>>
>
> how about:
>
> mgmt_access_networks:
> - 172.0.0.0.0/24
> - 172.1.0.0/16
>
> ?
>
> --
> 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/6ef7ab91-e9d6-4e4f-832c-3b9caf2140ad%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/6ef7ab91-e9d6-4e4f-832c-3b9caf2140ad%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CA%2BnsWgxhoJY65r9vy-K3wo2UqA290Byy8Yg4Q5Fkm6qPDODY5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to