diff --git a/lib/ansible/utils/template.py b/lib/ansible/utils/template.py index 000062a1fa8..c17eab48a88 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -139,7 +139,7 @@ def _varFind(basedir, text, vars, lookup_fatal, depth, expand_lists): brace_level += 1 elif is_complex and text[end] == '}': brace_level -= 1 - elif is_complex and text[end] in ('$', '[', ']'): + elif is_complex and text[end] in ('$', '[', ']', '-'): pass elif is_complex and text[end] == '.': if brace_level == 1: