From d34e7d7bca7cfd2db0f16618a5667888dfc7880d Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Sat, 18 Apr 2015 16:02:04 -0500 Subject: [PATCH] Correct the ternary example. Fixes #10763 --- docsite/rst/playbooks_filters.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/playbooks_filters.rst b/docsite/rst/playbooks_filters.rst index 79f72129569..63b0dabf13b 100644 --- a/docsite/rst/playbooks_filters.rst +++ b/docsite/rst/playbooks_filters.rst @@ -301,7 +301,7 @@ Other Useful Filters To use one value on true and another on false (since 1.9):: - {{ name == "John" | ternary('Mr','Ms') }} + {{ (name == "John") | ternary('Mr','Ms') }} To concatenate a list into a string::