This should do the trick I believe:
with_tems: list|reverse
Look for 'reverse' on http://jinja.pocoo.org/docs/templates/
Serge
On 7 May 2014 12:43, Aleksey Chirkin <[email protected]> wrote:
> Hello!
>
> I use zfs module for creating necessary structure.
> Using "with_items" I iterate over elements in config list. It's ok, but
> after all I need to unmount creating volumes.
> This must be done in reverse order for preventing "busy device".
>
> I need something like with_items_desc.
>
> What can you advise?
>
> --
> Aleksey
>
> --
> 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/1c996331-aae1-420a-b1cc-f9fc2e186d0f%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/1c996331-aae1-420a-b1cc-f9fc2e186d0f%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/CAEhzMJBF34eo6MbCXEZEtS_kMs2LXXnXKpWnsAJZu7X%3Dxm5K9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.