From a6c00989d1a9e88e074f2deefe7a5a33461b7ace Mon Sep 17 00:00:00 2001 From: Nick Zaccardi Date: Sat, 12 Apr 2014 21:26:08 -0400 Subject: [PATCH] Add reference to the join filter. --- docsite/rst/playbooks_variables.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst index 92f77fa1703..ce70daf54ff 100644 --- a/docsite/rst/playbooks_variables.rst +++ b/docsite/rst/playbooks_variables.rst @@ -260,6 +260,10 @@ Get a random number from 1 to 100 but in steps of 10:: Other Useful Filters -------------------- +To concatenate a list into a string:: + + {{ list | join(" ") }} + To get the last name of a file path, like 'foo.txt' out of '/etc/asdf/foo.txt':: {{ path | basename }}