Aha! Thanks Benjamin for letting me know what's wrong.
{% for item in {{ Volumes }} %}
should be
{% for item in Volumes %}
On Thursday, May 19, 2016 at 6:01:55 PM UTC-7, Bob Brown wrote:
>
> I have a structure that looks like this:
>
> ---
> Volumes:
> - name: data
> size: 80
> iops: 250
> device: /dev/xvdf
> type: standard
> id: vol-05778cd5
>
> - name: journal
> size: 20
> iops: 250
> device: /dev/xvdg
> type: standard
> id: vol-59768d89
>
> - name: log
> size: 10
> iops: 250
> device: /dev/xvdh
> type: standard
> id: vol-6f768dbf
>
> I am creating a script using templating and a portion of that script will
> use the data structure above to attach the volumes and then mount them
>
> So the output for the particular section should be something like
>
> attachAndMount /data /dev/xvdf vol-5778cd5
> attachAndMount /journal /dev/xvdg vol-59768d89
> attachAndMount /log /dev/xvdh vol-6f768dbf
>
>
> I'm trying to use:
>
> {% for item in {{ Volumes }} %}
> attachAndMount {{ item.name }} {{ item.device }} {{ item.id }}
> {% endfor %}
>
> But getting errors that indicate that Volumes is the wrong type of data to
> use 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].
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/c878ec98-79fc-471b-b371-1bee393950f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.