mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow $foo and {{ bar }} to be used on the same line in playbooks.
This commit is contained in:
parent
29209c4913
commit
998230a84a
1 changed files with 1 additions and 2 deletions
|
@ -234,8 +234,7 @@ def template(basedir, varname, vars, lookup_fatal=True, depth=0, expand_lists=Tr
|
|||
|
||||
if isinstance(varname, basestring):
|
||||
if '{{' in varname or '{%' in varname:
|
||||
res = template_from_string(basedir, varname, vars)
|
||||
return res
|
||||
varname = template_from_string(basedir, varname, vars)
|
||||
m = _varFind(basedir, varname, vars, lookup_fatal, depth, expand_lists)
|
||||
if not m:
|
||||
return varname
|
||||
|
|
Loading…
Reference in a new issue