mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Merge pull request #6970 from nZac/doc-jinja-join-filter
Add reference to the join filter.
This commit is contained in:
commit
4f9dafd394
1 changed files with 4 additions and 0 deletions
|
@ -260,6 +260,10 @@ Get a random number from 1 to 100 but in steps of 10::
|
||||||
Other Useful Filters
|
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'::
|
To get the last name of a file path, like 'foo.txt' out of '/etc/asdf/foo.txt'::
|
||||||
|
|
||||||
{{ path | basename }}
|
{{ path | basename }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue