Hi folks
I got kind of stuck with https://gist.github.com/barraponto/a14c264a7755c8371ade
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…
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
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