You just need a join to make your current expression's output (list)
into a string.
But @sivel's solution with slicing is probably better, the reason you
cannot find it in documentation is because this is a "Pythonism" and a
property of Python list objects.
Ansible uses Jinja for expression evaluation, Jinja compiles into
Python in the end and exposes many of the properties of those Python
objects, neither Ansible nor Jinja document these properties so you
would need to a) know the type of object you are dealing with and b)
look at python documentation for those objects.


-- 
----------
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7fjEruAjRn1mLRnEKjRUeefb1RQwapTvfKdDnU0T9%2BO_g%40mail.gmail.com.

Reply via email to