But I'm referencing the same list/vars file that I've always used with this
script. I have data in it. If I actually put in the script {{ servername[0]
}} it pulls the first item in the list.yml file and the script works. But
when I try to do a variable substitution for the position in the list it
gives me the error. When I use the old syntax ${servername[$iteration]} it
works. Could this be a bug or am I just missing something here?
On Friday, March 20, 2015 at 8:55:33 AM UTC-4, Brian Coca wrote:
>
> that means that your list is empty and has no elements, you could
> check that before hand by looking at list|length
>
>
>
> --
> 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/598f1b6f-56a3-401e-8588-1761fc9bb1a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.