add option to ignore $legacy variable style substitution

This commit is contained in:
Matt Coddington
2013-05-06 09:48:52 -04:00
committed by Michael DeHaan
parent 67e67bca1f
commit 542eeeb5d6
3 changed files with 13 additions and 0 deletions

View File

@@ -142,6 +142,11 @@ def _legacy_varFind(basedir, text, vars, lookup_fatal, depth, expand_lists):
original data in the caller.
'''
# short circuit this whole function if we have specified we don't want
# legacy var replacement
if C.DEFAULT_LEGACY_PLAYBOOK_VARIABLES == 'no':
return None
start = text.find("$")
if start == -1:
return None