Merge pull request #8792 from bcoca/ternary_filter

ternary filter
This commit is contained in:
Brian Coca 2015-02-12 11:29:49 -05:00
commit 62a6378c4a
2 changed files with 14 additions and 0 deletions

View file

@ -384,6 +384,10 @@ Hash types available depend on the master system running ansible,
Other Useful Filters
--------------------
To use one value on true and another on false::
{{ name == "John" | ternary('Mr','Ms') }}
To concatenate a list into a string::
{{ list | join(" ") }}