Thanks. I had misunderstood how with_items were expanded.
I have managed to wrap my head around it, results can be seen here: 
https://github.com/barraponto/ansible-aws-vpc/blob/master/tasks/main.yml 

Em quarta-feira, 10 de dezembro de 2014 18h44min33s UTC-2, Serge van 
Ginderachter escreveu:
>
>
>
> On 10 December 2014 at 21:41, Capi Etheriel <[email protected] 
> <javascript:>> wrote:
>
>> Hi folks
>>
>> I got kind of stuck with 
>> https://gist.github.com/barraponto/a14c264a7755c8371ade
>>
>
> ​kast line(13) in the task file, the indent of with_items is wrong:
>
>         with_items: aws_vpc_subnets
>
> ​
>  
> ​Indent should be the same as the name: of the task
>
> ​
>
>> It's in a role as you can see. I've gisted the only files I edited in it.
>> The problem is it says item is not defined:
>>
>> fatal: [localhost] => One or more undefined variables: 'item' is undefined
>>
>> I'm running with -vvvv but I can't get any better debug output, that is 
>> all :(
>> The thing is, I believe it *should* work. I can't see what's the issue 
>> here...
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/dd3ec46e-3a94-4809-b0e8-152d4e7733af%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/dd3ec46e-3a94-4809-b0e8-152d4e7733af%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/fe8bf92f-8285-48a7-8c65-5f8311a143ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to