mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
commit
62a6378c4a
2 changed files with 14 additions and 0 deletions
|
@ -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(" ") }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue